Documentation ¶
Index ¶
- type Config
- type ResResult
- type Store
- func (s *Store) Check(ctx context.Context, key string) (bool, error)
- func (s *Store) Close() error
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, key string) (string, bool, error)
- func (s *Store) Set(ctx context.Context, key, value string, expiration time.Duration) error
- func (s *Store) Set1(ctx context.Context, key string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AddrURL string // 服务器地址 http://abc.cn/api/auth/store Middleware goutapi.RequestMiddler // 可以增加远程调用规则和权限 }
Config 配置
type ResResult ¶
type ResResult struct { Success bool `json:"success"` ErrMessage string `json:"errmsg"` ErrCode string `json:"errcode"` Data interface{} `json:"data"` }
ResResult 用于解析 服务端 返回的http body
Click to show internal directories.
Click to hide internal directories.