Documentation ¶
Index ¶
- Variables
- func Main()
- type DBConfig
- type Storage
- type StorageClient
- func (s *StorageClient) Append(key string, value []byte) (bool, error)
- func (s *StorageClient) Clean()
- func (s *StorageClient) Close()
- func (s *StorageClient) Delete(key string) (bool, error)
- func (s *StorageClient) Get(key string) (*mc.Item, error)
- func (s *StorageClient) GetMulti(keys []string) (map[string]*mc.Item, error)
- func (s *StorageClient) GetSuccessedTargets() []string
- func (s *StorageClient) Incr(key string, value int) (int, error)
- func (s *StorageClient) Len() int
- func (s *StorageClient) Process(cmd string, args []string) (status string, msg string)
- func (s *StorageClient) Set(key string, item *mc.Item, noreply bool) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorNotSupport = errors.New("operation not support")
)
Functions ¶
Types ¶
type DBConfig ¶
type DBConfig struct { config.ServerConfig `yaml:"server,omitempty"` config.MCConfig `yaml:"mc,omitempty"` store.HStoreConfig `yaml:"hstore,omitempty"` }
func (*DBConfig) ConfigPackages ¶
func (c *DBConfig) ConfigPackages()
func (*DBConfig) InitDefault ¶
func (c *DBConfig) InitDefault()
type StorageClient ¶
type StorageClient struct {
// contains filtered or unexported fields
}
func (*StorageClient) Append ¶
func (s *StorageClient) Append(key string, value []byte) (bool, error)
func (*StorageClient) Clean ¶
func (s *StorageClient) Clean()
func (*StorageClient) Close ¶
func (s *StorageClient) Close()
func (*StorageClient) GetSuccessedTargets ¶
func (s *StorageClient) GetSuccessedTargets() []string
func (*StorageClient) Len ¶
func (s *StorageClient) Len() int
Click to show internal directories.
Click to hide internal directories.