auth/internal/token/repository.go

14 lines
284 B
Go
Raw Normal View History

package token
import (
"context"
2021-09-20 15:45:54 +00:00
"source.toby3d.me/website/oauth/internal/model"
)
type Repository interface {
Create(ctx context.Context, token *model.Token) error
Get(ctx context.Context, token string) (*model.Token, error)
Delete(ctx context.Context, token string) error
}