auth/internal/ticket/repository.go
Maxim Lebedev 3b0ebb3690
Some checks failed
continuous-integration/drone Build is failing
🚚 Renamed module due project migration
2022-03-13 15:58:34 +05:00

16 lines
364 B
Go

package ticket
import (
"context"
"source.toby3d.me/toby3d/auth/internal/domain"
)
type Repository interface {
Create(ctx context.Context, ticket *domain.Ticket) error
GetAndDelete(ctx context.Context, ticket string) (*domain.Ticket, error)
GC()
}
var ErrNotExist error = domain.NewError(domain.ErrorCodeInvalidRequest, "ticket not exist or expired", "")