Documentation ¶
Index ¶
- func AddExitHook(hook func() error)
- func Exit() error
- func Init() error
- func Postgres() *pg.DB
- func RedisCache() *cache.Cache
- func RedisRing() *redis.Ring
- func Run() error
- type OtterClientStore
- type OtterTokenStore
- func (s *OtterTokenStore) Create(ctx context.Context, info oauth2.TokenInfo) error
- func (s *OtterTokenStore) GetByAccess(ctx context.Context, access string) (oauth2.TokenInfo, error)
- func (s *OtterTokenStore) GetByCode(ctx context.Context, code string) (oauth2.TokenInfo, error)
- func (s *OtterTokenStore) GetByRefresh(ctx context.Context, refresh string) (oauth2.TokenInfo, error)
- func (s *OtterTokenStore) RemoveByAccess(ctx context.Context, access string) error
- func (s *OtterTokenStore) RemoveByCode(ctx context.Context, code string) error
- func (s *OtterTokenStore) RemoveByRefresh(ctx context.Context, refresh string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExitHook ¶
func AddExitHook(hook func() error)
func RedisCache ¶
func RedisCache() *cache.Cache
Types ¶
type OtterClientStore ¶
type OtterTokenStore ¶
type OtterTokenStore struct{}
func (*OtterTokenStore) Create ¶
func (s *OtterTokenStore) Create(ctx context.Context, info oauth2.TokenInfo) error
func (*OtterTokenStore) GetByAccess ¶
func (s *OtterTokenStore) GetByAccess(ctx context.Context, access string) (oauth2.TokenInfo, error)
func (*OtterTokenStore) GetByCode ¶
func (s *OtterTokenStore) GetByCode(ctx context.Context, code string) (oauth2.TokenInfo, error)
func (*OtterTokenStore) GetByRefresh ¶
func (s *OtterTokenStore) GetByRefresh(ctx context.Context, refresh string) (oauth2.TokenInfo, error)
func (*OtterTokenStore) RemoveByAccess ¶
func (s *OtterTokenStore) RemoveByAccess(ctx context.Context, access string) error
func (*OtterTokenStore) RemoveByCode ¶
func (s *OtterTokenStore) RemoveByCode(ctx context.Context, code string) error
func (*OtterTokenStore) RemoveByRefresh ¶
func (s *OtterTokenStore) RemoveByRefresh(ctx context.Context, refresh string) error
Click to show internal directories.
Click to hide internal directories.