Documentation ¶
Index ¶
- Variables
- func IsNil(i interface{}) bool
- type BigNumber
- func (bigNumber *BigNumber) Copy() BigNumber
- func (bigNumber *BigNumber) IsNil() bool
- func (bigNumber *BigNumber) MarshalBinary() ([]byte, error)
- func (bigNumber *BigNumber) MarshalJSON() ([]byte, error)
- func (bigNumber *BigNumber) MarshalText() ([]byte, error)
- func (bigNumber *BigNumber) Scan(value interface{}) error
- func (bigNumber *BigNumber) UnmarshalBinary(text []byte) error
- func (bigNumber *BigNumber) UnmarshalJSON(value []byte) error
- func (bigNumber *BigNumber) UnmarshalText(text []byte) error
- func (bigNumber *BigNumber) Value() (driver.Value, error)
- type Number
- type SessionToken
- type Status
- type String
- func (s *String) MarshalBinary() ([]byte, error)
- func (s *String) MarshalJSON() ([]byte, error)
- func (s *String) MarshalText() ([]byte, error)
- func (j *String) Scan(value interface{}) error
- func (s *String) UnmarshalBinary(text []byte) error
- func (s *String) UnmarshalJSON(value []byte) error
- func (s *String) UnmarshalText(text []byte) error
- func (j String) Value() (driver.Value, error)
- type Tags
- type TagsInt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSessionTokenExpired = errors.New("Token is expired") ErrSessionTokenInvalid = errors.New("Token is invalid") )
Functions ¶
Types ¶
type BigNumber ¶
func NewBigNumber ¶
func (*BigNumber) MarshalBinary ¶
func (*BigNumber) MarshalJSON ¶
func (*BigNumber) MarshalText ¶
func (*BigNumber) UnmarshalBinary ¶
func (*BigNumber) UnmarshalJSON ¶
func (*BigNumber) UnmarshalText ¶
type SessionToken ¶
type SessionToken struct { UserId string `json:"uid,omitempty"` Username string `json:"usn,omitempty"` Vars map[string]string `json:"vrs,omitempty"` ExpiresAt int64 `json:"exp,omitempty"` }
func ParseSessionToken ¶
func ParseSessionToken(hmacSecretByte []byte, tokenString string) (*SessionToken, error)
func (*SessionToken) Valid ¶
func (stc *SessionToken) Valid() error
type String ¶
type String string
func (*String) MarshalBinary ¶
func (*String) MarshalJSON ¶
func (*String) MarshalText ¶
func (*String) UnmarshalBinary ¶
func (*String) UnmarshalJSON ¶
func (*String) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.