Documentation ¶
Index ¶
- Variables
- func DotFileHidingFileSystem(fileSystems http.FileSystem) *dotFileHidingFileSystem
- type ApiClientService
- func (a *ApiClientService) Authorize(auth model.Auth) (token model.TokenSet, error error)
- func (a *ApiClientService) Deauthorize(accessToken string) (error error)
- func (a *ApiClientService) Refresh(refreshToken string) (tokenSet model.TokenSet, error error)
- func (a *ApiClientService) Verify(accessToken string) (user model.User, error error)
- type BackendStoreService
- type BackendStoreServiceType
- type SessionService
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiAccessTokenKey = "access_token"
View Source
var ApiExpireInKey = "expire_in"
View Source
var ApiRefreshTokenKey = "refresh_token"
Functions ¶
func DotFileHidingFileSystem ¶
func DotFileHidingFileSystem(fileSystems http.FileSystem) *dotFileHidingFileSystem
Types ¶
type ApiClientService ¶
type ApiClientService struct{}
func (*ApiClientService) Deauthorize ¶
func (a *ApiClientService) Deauthorize(accessToken string) (error error)
type BackendStoreService ¶
type BackendStoreService struct{}
func (*BackendStoreService) Del ¶
func (b *BackendStoreService) Del(key string) (error error)
func (*BackendStoreService) Get ¶
func (b *BackendStoreService) Get(key string) (result string, error error)
func (*BackendStoreService) IsServiceAvailable ¶
func (b *BackendStoreService) IsServiceAvailable() bool
type BackendStoreServiceType ¶
type BackendStoreServiceType uint
const ( Redis BackendStoreServiceType = iota Memcached )
var DefaultBackendStore BackendStoreServiceType = Redis
type SessionService ¶
type SessionService struct{}
func (*SessionService) GetSessionStore ¶
func (s *SessionService) GetSessionStore() (*sessions.Store, error)
Click to show internal directories.
Click to hide internal directories.