Documentation ¶
Overview ¶
Package token represents the decoded form of a "session" token.
Index ¶
- type DToken
- func (dt DToken) Bool(i int) (bool, error)
- func (dt DToken) CompareExpiry() int
- func (dt DToken) ExpiryTime() time.Time
- func (dt DToken) PutInCtx(r *http.Request) *http.Request
- func (dt *DToken) SetBool(i int, value bool) error
- func (dt *DToken) SetExpiry(d time.Duration)
- func (dt *DToken) SetRemoteIP(r *http.Request) error
- func (dt *DToken) SetString(i int, s string) error
- func (dt *DToken) SetUint64(i int, v uint64) error
- func (dt *DToken) ShortenIP()
- func (dt DToken) String(i int) (string, error)
- func (dt DToken) Uint64(i int) (uint64, error)
- func (dt DToken) Valid(r *http.Request) error
- func (dt DToken) ValidExpiry() bool
- func (dt DToken) ValidIP(r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DToken ¶
func (DToken) CompareExpiry ¶
func (DToken) ExpiryTime ¶
func (DToken) ValidExpiry ¶
Click to show internal directories.
Click to hide internal directories.