Documentation ¶
Index ¶
- func Init()
- func InitRedis()
- type MetadataEndpoint
- type RedisEndpoint
- func (r *RedisEndpoint) Get(key string) (string, error)
- func (r *RedisEndpoint) HDel(key string, fields ...string) error
- func (r *RedisEndpoint) HGet(key, field string) (string, error)
- func (r *RedisEndpoint) HGetAll(key string) (map[string]string, error)
- func (r *RedisEndpoint) HSet(key, field string, values interface{}) error
- func (r *RedisEndpoint) Set(key, value string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MetadataEndpoint ¶
func GetMetadataEndpointIns ¶
func GetMetadataEndpointIns() *MetadataEndpoint
func NewMetadataEndpoint ¶
func NewMetadataEndpoint() *MetadataEndpoint
type RedisEndpoint ¶
type RedisEndpoint struct{}
func GetRedisEndpoint ¶
func GetRedisEndpoint() (r *RedisEndpoint)
func (*RedisEndpoint) HGetAll ¶
func (r *RedisEndpoint) HGetAll(key string) (map[string]string, error)
func (*RedisEndpoint) HSet ¶
func (r *RedisEndpoint) HSet(key, field string, values interface{}) error
Click to show internal directories.
Click to hide internal directories.