Documentation
¶
Overview ¶
kvsimple - simple key-value message class for example applications.
This is a very much unlike typical Go.
Index ¶
- type Kvmsg
- func (kvmsg *Kvmsg) Dump()
- func (kvmsg *Kvmsg) GetBody() (body string, err error)
- func (kvmsg *Kvmsg) GetKey() (key string, err error)
- func (kvmsg *Kvmsg) GetSequence() (sequence int64, err error)
- func (kvmsg *Kvmsg) Send(socket *zmq.Socket) (err error)
- func (kvmsg *Kvmsg) SetBody(body string)
- func (kvmsg *Kvmsg) SetKey(key string)
- func (kvmsg *Kvmsg) SetSequence(sequence int64)
- func (kvmsg *Kvmsg) Size() int
- func (kvmsg *Kvmsg) Store(kvmap map[string]*Kvmsg)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kvmsg ¶
type Kvmsg struct {
// contains filtered or unexported fields
}
The Kvmsg type holds a single key-value message consisting of a list of 0 or more frames.
func RecvKvmsg ¶
The RecvKvmsg function reads a key-value message from socket, and returns a new Kvmsg instance.
func (*Kvmsg) Dump ¶
func (kvmsg *Kvmsg) Dump()
The dump method prints the key-value message to stderr, for debugging and tracing.
func (*Kvmsg) GetSequence ¶
func (*Kvmsg) SetSequence ¶
Click to show internal directories.
Click to hide internal directories.