Documentation ¶
Index ¶
- Variables
- type GetOption
- type Session
- type SessionSlice
- type Store
- func (ss *Store) DeleteSessions(ctx context.Context, uid string, sids []string) error
- func (ss *Store) GetPlatformToSessions(ctx context.Context, uid string, opts ...GetOption) (map[string][]Session, error)
- func (ss *Store) GetSessions(ctx context.Context, uid string, opts ...GetOption) ([]Session, error)
- func (ss *Store) GetSidToSession(ctx context.Context, uid string, opts ...GetOption) (map[string]Session, error)
- func (ss *Store) SetSession(ctx context.Context, sess Session) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUid = status.Errorf(codes.InvalidArgument, "uid is required")
Functions ¶
This section is empty.
Types ¶
type Session ¶
type SessionSlice ¶
type SessionSlice []Session
func (SessionSlice) Len ¶
func (p SessionSlice) Len() int
func (SessionSlice) Less ¶
func (p SessionSlice) Less(i, j int) bool
func (SessionSlice) Swap ¶
func (p SessionSlice) Swap(i, j int)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteSessions ¶
func (*Store) GetPlatformToSessions ¶
func (ss *Store) GetPlatformToSessions(ctx context.Context, uid string, opts ...GetOption) (map[string][]Session, error)
获取session信息,map 形式 PlatformToSessions
func (*Store) GetSessions ¶
获取session信息
Click to show internal directories.
Click to hide internal directories.