Documentation
¶
Index ¶
- func GenerateSessionKey(algorithm string, step rsa_blind.RSAStep) string
- func GetExistingStringAndIndex(raw []interface{}) ([]string, []int)
- func ReadSchema(filename string) (string, error)
- type ChannelConn
- type Conn
- type Consumer
- type KV
- type Key
- type Message
- type Producer
- type PulsarConsumer
- type PulsarProducer
- type RedisKV
- func (kv *RedisKV) Del(key string) error
- func (kv *RedisKV) Get(key string) (string, error)
- func (kv *RedisKV) HashDel(key string, fields []string) error
- func (kv *RedisKV) HashGet(key, field string) (string, error)
- func (kv *RedisKV) HashMultiGet(key string, fields []string) ([]interface{}, error)
- func (kv *RedisKV) HashPut(key string, data map[string]string) error
- func (kv *RedisKV) Put(key string, val string) error
- func (kv *RedisKV) SetAdd(key string, members []string) error
- func (kv *RedisKV) SetCheck(key string, members []string) ([]bool, error)
- func (kv *RedisKV) SetDel(key string, members []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadSchema ¶
Types ¶
type ChannelConn ¶
type ChannelConn struct {
// contains filtered or unexported fields
}
func NewChannelConn ¶
func NewChannelConn(ch chan []byte) *ChannelConn
func (*ChannelConn) Close ¶
func (conn *ChannelConn) Close()
type KV ¶
type KV interface { // TODO(zhuzilin) Currently, the go-redis library will return string by default. // Find a way to return correct type of the val. Put(key string, val string) error Get(key string) (string, error) Del(key string) error HashPut(key string, data map[string]string) error HashGet(key, field string) (string, error) HashMultiGet(key string, fields []string) ([]interface{}, error) HashDel(key string, fields []string) error SetAdd(key string, members []string) error SetCheck(key string, members []string) ([]bool, error) SetDel(key string, members []string) error }
type PulsarConsumer ¶
type PulsarConsumer struct {
// contains filtered or unexported fields
}
func NewPulsarConsumer ¶
func NewPulsarConsumer(URL string, topic string, schema *string) (*PulsarConsumer, error)
func (*PulsarConsumer) Close ¶
func (c *PulsarConsumer) Close()
func (*PulsarConsumer) Receive ¶
func (c *PulsarConsumer) Receive() ([]byte, error)
func (*PulsarConsumer) ReceiveStruct ¶
func (c *PulsarConsumer) ReceiveStruct() (Message, error)
type PulsarProducer ¶
type PulsarProducer struct {
// contains filtered or unexported fields
}
func NewPulsarProducer ¶
func NewPulsarProducer(URL string, topic string, schema *string) (*PulsarProducer, error)
func (*PulsarProducer) Close ¶
func (p *PulsarProducer) Close()
func (*PulsarProducer) GetConnectionInfo ¶
func (p *PulsarProducer) GetConnectionInfo() string
func (*PulsarProducer) Send ¶
func (p *PulsarProducer) Send(payload []byte) error
func (*PulsarProducer) SendStruct ¶
func (p *PulsarProducer) SendStruct(msg *Message) error
type RedisKV ¶
type RedisKV struct {
// contains filtered or unexported fields
}
func NewRedisKV ¶
func (*RedisKV) HashMultiGet ¶
Click to show internal directories.
Click to hide internal directories.