Documentation ¶
Overview ¶
Package clients provides the client related business logic.
Index ¶
- Variables
- func Activate(ctx context.Context, db database.Database, project *types.Project, ...) (*database.ClientInfo, error)
- func Deactivate(ctx context.Context, db database.Database, refKey types.ClientRefKey) (*database.ClientInfo, error)
- func FindActiveClientInfo(ctx context.Context, db database.Database, refKey types.ClientRefKey) (*database.ClientInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidClientKey is returned when the given Key is not valid ClientKey. ErrInvalidClientKey = errors.New("invalid client key") // ErrInvalidClientID is returned when the given Key is not valid ClientID. ErrInvalidClientID = errors.New("invalid client id") )
Functions ¶
func Activate ¶
func Activate( ctx context.Context, db database.Database, project *types.Project, clientKey string, ) (*database.ClientInfo, error)
Activate activates the given client.
func Deactivate ¶
func Deactivate( ctx context.Context, db database.Database, refKey types.ClientRefKey, ) (*database.ClientInfo, error)
Deactivate deactivates the given client.
func FindActiveClientInfo ¶ added in v0.4.21
func FindActiveClientInfo( ctx context.Context, db database.Database, refKey types.ClientRefKey, ) (*database.ClientInfo, error)
FindActiveClientInfo find the active client info by the given ref key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.