Documentation ¶
Index ¶
- Constants
- func Init(cnf *configure.Session)
- func IsErrExpired(e error) bool
- func Platforms() []string
- type Coder
- type Manager
- func (m *Manager) Delete(ctx context.Context, access string) (e error)
- func (m *Manager) DeleteID(ctx context.Context, id int64) (e error)
- func (m *Manager) Get(ctx context.Context, access string) (session *Session, e error)
- func (m *Manager) Put(ctx context.Context, id int64, platform string, session *Session) (token *sessionstore.Token, e error)
- func (m *Manager) Refresh(ctx context.Context, access, refresh string) (token *sessionstore.Token, e error)
- func (m *Manager) Sin(playdata string) (string, error)
- func (m *Manager) Verify(token string) (string, error)
- type Session
Constants ¶
View Source
const ( KeyUserdata = `userdata` KeyModtime = `modtime` )
Variables ¶
This section is empty.
Functions ¶
func IsErrExpired ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func DefaultManager ¶
func DefaultManager() *Manager
type Session ¶
type Session struct { ID int64 Name string Nickname string Authorization []int32 Parent int64 Token *sessionstore.Token }
Click to show internal directories.
Click to hide internal directories.