Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheClient ¶
type CacheClient interface { // SendMessage send message to a cache server. SendMessage(ctx context.Context, address string, req *cache.Request) (*cache.CacheResponse, error) // NewRequest creates a new request by cmd method. NewRequest(cache.CmdMethod) *cache.Request // Release releases the response. Release(*cache.CacheResponse) // Close closes the cache client. Close() error }
func NewCacheClient ¶
func NewCacheClient(cfg ClientConfig) (CacheClient, error)
type ClientConfig ¶
ClientConfig a config to init a CNClient
Click to show internal directories.
Click to hide internal directories.