Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type LocksResolver ¶
type LocksResolver struct{}
type MutationResolver ¶
type MutationResolver struct{}
func (*MutationResolver) AcquireLock ¶
func (r *MutationResolver) AcquireLock(ctx context.Context, lockName string, durationSec int, isRenewal *bool, ) (ok bool, err error)
AcquireLock acquire mutex lock with name and duration. if `isRenewal=true`, will renewal exists lock.
func (*MutationResolver) CreateGeneralToken ¶
func (r *MutationResolver) CreateGeneralToken(ctx context.Context, username string, durationSec int, ) (token string, err error)
CreateGeneralToken generate genaral token than should be set as cookie `general`
type QueryResolver ¶
type QueryResolver struct{}
func (*QueryResolver) LockPermissions ¶
func (r *QueryResolver) LockPermissions(ctx context.Context, username string) (users []*global.GeneralUser, err error)
Click to show internal directories.
Click to hide internal directories.