Documentation
¶
Index ¶
- type Metadata
- func (m Metadata) Get(key string) string
- func (m Metadata) MustParseBool(key string) (bool, error)
- func (m Metadata) MustParseInt(key string) (int, error)
- func (m Metadata) MustParseIntWithRange(key string, min, max int) (int, error)
- func (m Metadata) MustParseJsonMap(key string) (map[string]string, error)
- func (m Metadata) MustParseString(key string) (string, error)
- func (m Metadata) ParseBool(key string, defaultValue bool) bool
- func (m Metadata) ParseInt(key string, defaultValue int) int
- func (m Metadata) ParseIntWithRange(key string, defaultValue, min, max int) (int, error)
- func (m Metadata) ParseString(key, defaultValue string) string
- func (m Metadata) ParseStringMap(key string, stringMap map[string]string) (string, error)
- func (m Metadata) Set(key, value string) Metadata
- func (m Metadata) String() string
- type Request
- func NewRequest() *Request
- func ParseRequest(body []byte) (*Request, error)
- func ParseRequestFromCommand(cmd *kubemq.Command) (*Request, error)
- func ParseRequestFromCommandReceive(cmd *kubemq.CommandReceive) (*Request, error)
- func ParseRequestFromEvent(event *kubemq.Event) (*Request, error)
- func ParseRequestFromEventStore(event *kubemq.EventStore) (*Request, error)
- func ParseRequestFromEventStoreReceive(event *kubemq.EventStoreReceive) (*Request, error)
- func ParseRequestFromQuery(query *kubemq.Query) (*Request, error)
- func ParseRequestFromQueryReceive(query *kubemq.QueryReceive) (*Request, error)
- func ParseRequestFromQueueMessage(msg *kubemq.QueueMessage) (*Request, error)
- func (r *Request) MarshalBinary() []byte
- func (r *Request) SetData(value []byte) *Request
- func (r *Request) SetMetadata(value Metadata) *Request
- func (r *Request) SetMetadataKeyValue(key, value string) *Request
- func (r *Request) ToCommand() *kubemq.Command
- func (r *Request) ToEvent() *kubemq.Event
- func (r *Request) ToEventStore() *kubemq.EventStore
- func (r *Request) ToQuery() *kubemq.Query
- type Response
- func NewResponse() *Response
- func ParseResponseFromCommandResponse(resp *kubemq.CommandResponse) (*Response, error)
- func ParseResponseFromEvent(event *kubemq.Event) (*Response, error)
- func ParseResponseFromEventReceive(event *kubemq.EventStoreReceive) (*Response, error)
- func ParseResponseFromQueryResponse(resp *kubemq.QueryResponse) (*Response, error)
- func (r *Response) SetData(value []byte) *Response
- func (r *Response) SetMetadata(value Metadata) *Response
- func (r *Response) SetMetadataKeyValue(key, value string) *Response
- func (r *Response) ToCommand() *kubemq.Command
- func (r *Response) ToEvent() *kubemq.Event
- func (r *Response) ToEventStore() *kubemq.EventStore
- func (r *Response) ToQuery() *kubemq.Query
- func (r *Response) ToQueueMessage() *kubemq.QueueMessage
- func (r *Response) ToResponse() *kubemq.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
func NewMetadata ¶
func NewMetadata() Metadata
func UnmarshallMetadata ¶
func (Metadata) MustParseIntWithRange ¶
func (Metadata) MustParseJsonMap ¶
func (Metadata) ParseIntWithRange ¶
func (Metadata) ParseString ¶
func (Metadata) ParseStringMap ¶
type Request ¶
func NewRequest ¶
func NewRequest() *Request
func ParseRequest ¶
func ParseRequestFromCommand ¶
func ParseRequestFromEvent ¶
func ParseRequestFromQuery ¶
func (*Request) MarshalBinary ¶
func (*Request) SetMetadata ¶
func (*Request) SetMetadataKeyValue ¶
func (*Request) ToEventStore ¶
func (r *Request) ToEventStore() *kubemq.EventStore
type Response ¶
func NewResponse ¶
func NewResponse() *Response
func ParseResponseFromEvent ¶
func (*Response) SetMetadata ¶
func (*Response) SetMetadataKeyValue ¶
func (*Response) ToEventStore ¶
func (r *Response) ToEventStore() *kubemq.EventStore
func (*Response) ToQueueMessage ¶
func (r *Response) ToQueueMessage() *kubemq.QueueMessage
func (*Response) ToResponse ¶
func (r *Response) ToResponse() *kubemq.Response
Click to show internal directories.
Click to hide internal directories.