app

package
v0.0.0-...-d4b2637 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExitHook

func AddExitHook(hook func() error)

func Exit

func Exit() error

func Init

func Init() error

func Postgres

func Postgres() *pg.DB

func RedisCache

func RedisCache() *cache.Cache

func RedisRing

func RedisRing() *redis.Ring

func Run

func Run() error

Types

type OtterClientStore

type OtterClientStore struct {
	sync.RWMutex
}

func (*OtterClientStore) GetByID

func (s *OtterClientStore) GetByID(ctx context.Context, id string) (oauth2.ClientInfo, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL