Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
pkg/commandbus/pb/commandbus.proto
It has these top-level messages:
Command
Package pb is a generated protocol buffer package.
It is generated from these files:
pkg/commandbus/pb/reply.proto
It has these top-level messages:
Reply
Index ¶
- Variables
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (m *Command) GetCommandType() string
- func (m *Command) GetHeader() map[string]string
- func (m *Command) GetPayload() []byte
- func (m *Command) GetStreamId() string
- func (m *Command) GetStreamType() string
- func (m *Command) Marshal() (dAtA []byte, err error)
- func (m *Command) MarshalTo(dAtA []byte) (int, error)
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) Size() (n int)
- func (m *Command) String() string
- func (m *Command) Unmarshal(dAtA []byte) error
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetCommandType() string
- func (m *Reply) GetCorrelationId() string
- func (m *Reply) GetError() string
- func (m *Reply) GetPayload() []byte
- func (m *Reply) GetReplyType() string
- func (m *Reply) GetStreamId() string
- func (m *Reply) GetStreamType() string
- func (m *Reply) GetVersion() int64
- func (m *Reply) Marshal() (dAtA []byte, err error)
- func (m *Reply) MarshalTo(dAtA []byte) (int, error)
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) Size() (n int)
- func (m *Reply) String() string
- func (m *Reply) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthCommand = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCommand = fmt.Errorf("proto: integer overflow") )
View Source
var ( ErrInvalidLengthReply = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowReply = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` StreamType string `protobuf:"bytes,4,opt,name=stream_type,json=streamType,proto3" json:"stream_type,omitempty"` CommandType string `protobuf:"bytes,8,opt,name=command_type,json=commandType,proto3" json:"command_type,omitempty"` Payload []byte `protobuf:"bytes,12,opt,name=payload,proto3" json:"payload,omitempty"` Header map[string]string `` /* 147-byte string literal not displayed */ }
func (*Command) Descriptor ¶
func (*Command) GetCommandType ¶
func (*Command) GetPayload ¶
func (*Command) GetStreamId ¶
func (*Command) GetStreamType ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
type Reply ¶
type Reply struct { CorrelationId string `protobuf:"bytes,1,opt,name=correlation_id,json=correlationId,proto3" json:"correlation_id,omitempty"` StreamType string `protobuf:"bytes,4,opt,name=stream_type,json=streamType,proto3" json:"stream_type,omitempty"` StreamId string `protobuf:"bytes,8,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` ReplyType string `protobuf:"bytes,12,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"` CommandType string `protobuf:"bytes,13,opt,name=command_type,json=commandType,proto3" json:"command_type,omitempty"` Payload []byte `protobuf:"bytes,16,opt,name=payload,proto3" json:"payload,omitempty"` Error string `protobuf:"bytes,20,opt,name=error,proto3" json:"error,omitempty"` Version int64 `protobuf:"varint,24,opt,name=version,proto3" json:"version,omitempty"` }
func (*Reply) Descriptor ¶
func (*Reply) GetCommandType ¶
func (*Reply) GetCorrelationId ¶
func (*Reply) GetPayload ¶
func (*Reply) GetReplyType ¶
func (*Reply) GetStreamId ¶
func (*Reply) GetStreamType ¶
func (*Reply) GetVersion ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.