Documentation ¶
Index ¶
- Variables
- type Account
- type AuthLevel
- type Cache
- func (c *Cache) GetCache(k interface{}) *CacheValue
- func (c *Cache) GetCacheTimeout(k interface{}, t time.Time) *CacheValue
- func (c *Cache) ReloadCache(k interface{}, l CacheReLoader) (*CacheValue, error)
- func (c *Cache) ReloadCacheTimeout(k interface{}, l CacheReLoader, t time.Time) (*CacheValue, error)
- func (c *Cache) SetCache(k interface{}, v CacheValue)
- type CacheKeyInt64
- type CacheReLoader
- type CacheValue
- type Connection
- type ConnectionTypes
- type Handler
- type HandlerFunc
- type ICacheKey
- type Request
- type Response
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorNeedClose = errors.New("error need close")
)
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) GetCache ¶
func (c *Cache) GetCache(k interface{}) *CacheValue
func (*Cache) GetCacheTimeout ¶
func (c *Cache) GetCacheTimeout(k interface{}, t time.Time) *CacheValue
func (*Cache) ReloadCache ¶
func (c *Cache) ReloadCache(k interface{}, l CacheReLoader) (*CacheValue, error)
func (*Cache) ReloadCacheTimeout ¶
func (c *Cache) ReloadCacheTimeout(k interface{}, l CacheReLoader, t time.Time) (*CacheValue, error)
func (*Cache) SetCache ¶
func (c *Cache) SetCache(k interface{}, v CacheValue)
type CacheKeyInt64 ¶
type CacheKeyInt64 int64
func (CacheKeyInt64) CacheKey ¶
func (k CacheKeyInt64) CacheKey() interface{}
type CacheReLoader ¶
type CacheReLoader func() (*CacheValue, error)
type CacheValue ¶
type Connection ¶
type Connection struct {
ConnType ConnectionTypes
}
type ConnectionTypes ¶
type ConnectionTypes int
const ( STNone ConnectionTypes = iota STTcp STTls STUdp STHttp STWebsocket )
type HandlerFunc ¶ added in v0.0.5
func (HandlerFunc) ServeISes ¶ added in v0.0.5
func (h HandlerFunc) ServeISes(req Request) error
type Session ¶
type Session interface { GetConnection() *Connection GetAccount() *Account GetCache() *Cache }
Click to show internal directories.
Click to hide internal directories.