Documentation ¶
Index ¶
- Variables
- type OwnerCtl
- func (oc OwnerCtl) CreateOwner(ctx context.Context, owner models.Owner) error
- func (oc OwnerCtl) DeleteOwner(ctx context.Context, owner models.Owner) error
- func (oc OwnerCtl) GetOwner(ctx context.Context, owner models.Owner) (models.Owner, error)
- func (oc OwnerCtl) LoginOwner(ctx context.Context, owner models.Owner, appId int) (token string, err error)
- func (oc OwnerCtl) UpdateOwner(ctx context.Context, owner models.Owner) error
- type OwnerProvider
- type OwnerSaver
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidCredentials = errors.New("invalid credentials")
)
Functions ¶
This section is empty.
Types ¶
type OwnerCtl ¶
type OwnerCtl struct {
// contains filtered or unexported fields
}
func New ¶
func New( log *slog.Logger, ownerSaver OwnerSaver, ownerProvider OwnerProvider, tokenTTL time.Duration, ) *OwnerCtl
func (OwnerCtl) CreateOwner ¶
func (OwnerCtl) DeleteOwner ¶
func (OwnerCtl) LoginOwner ¶
type OwnerProvider ¶
Click to show internal directories.
Click to hide internal directories.