Documentation ¶
Index ¶
- Variables
- func Encode(command *Command) ([]byte, error)
- func RegisterCodec(command string, cc codec.Codec)
- func RegisterCodecs(commands map[string]codec.Codec)
- type Codec
- type Command
- func (c *Command) ID() uuid.UUID
- func (c *Command) IsEmptyStreamID() bool
- func (c *Command) Name() string
- func (c *Command) Payload() codec.Codec
- func (c *Command) ReplyErr(err error) *Reply
- func (c *Command) ReplyOk(version int) *Reply
- func (c *Command) StreamID() uuid.UUID
- func (c *Command) StreamName() string
- func (c *Command) String() string
- func (c *Command) Unix() int64
- type Encoding
- type Reply
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidInputData = errors.New("command: invalid data input for codec") ErrCodecNotFound = errors.New("command: codec not found") )
Functions ¶
func RegisterCodec ¶
func RegisterCodecs ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) IsEmptyStreamID ¶
func (*Command) StreamName ¶
type Reply ¶
type Reply struct {
// contains filtered or unexported fields
}
func (*Reply) MarshalBinary ¶
func (*Reply) StreamVersion ¶
func (*Reply) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.