Documentation ¶
Index ¶
- type ClientInterface
- type MemoryCache
- func (c *MemoryCache) GetGroup(ctx context.Context, s string) (models.Group, bool, error)
- func (c *MemoryCache) GetUser(ctx context.Context, s string) (models.User, bool, error)
- func (c *MemoryCache) SetGroup(ctx context.Context, s string, g models.Group) error
- func (c *MemoryCache) SetUser(ctx context.Context, s string, u models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInterface ¶
type ClientInterface interface { GetUser(ctx context.Context, s string) (models.User, bool, error) SetUser(ctx context.Context, s string, u models.User) error GetGroup(ctx context.Context, s string) (models.Group, bool, error) SetGroup(ctx context.Context, s string, g models.Group) error }
ClientInterface ...
type MemoryCache ¶
MemoryCache ...
func NewMemoryCache ¶
func NewMemoryCache(expirationInterval time.Duration) (*MemoryCache, error)
NewMemoryCache ...
Click to show internal directories.
Click to hide internal directories.