Documentation ¶
Index ¶
- func Authenticate(next http.Handler) http.Handler
- func FromID(m *hub.Msg) int64
- func IsUserSess(s *ses.Session) bool
- func RawMsg(subj string, data interface{}) *hub.Msg
- func SetupSess(db *buntdb.DB, cookieName string, secure bool) (*ses.Manager, error)
- type Auth
- type BuntSessStore
- type BuntUserStore
- type ChatData
- type ChatMsg
- type ChatRoom
- type Conns
- type EnterMsg
- type Room
- type SecureCodec
- type Sess
- type Site
- type User
- type UserData
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUserSess ¶
Types ¶
type Auth ¶
type Auth struct { Man *ses.Manager Store *BuntUserStore }
type BuntSessStore ¶
func (*BuntSessStore) Delete ¶
func (s *BuntSessStore) Delete(td string) error
type BuntUserStore ¶
func (*BuntUserStore) Save ¶
func (s *BuntUserStore) Save(data UserData) error
type SecureCodec ¶
type SecureCodec struct { *securecookie.SecureCookie // contains filtered or unexported fields }
func (*SecureCodec) DecodeToken ¶
func (c *SecureCodec) DecodeToken(tok string) (td string, err error)
func (*SecureCodec) EncodeToken ¶
func (c *SecureCodec) EncodeToken(td string) (tok string, err error)
type Sess ¶
Click to show internal directories.
Click to hide internal directories.