Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullyQualifiedStructName ¶
func FullyQualifiedStructName(v interface{}) string
FullyQualifiedStructName name returns object name in format [package].[type name]. It ignores if the value is a pointer or not.
func NamedStruct ¶
NamedStruct returns the name from a message implementing the following interface:
type namedStruct interface { Name() string }
It ignores if the value is a pointer or not.
func StructName ¶
func StructName(v interface{}) string
StructName name returns struct name in format [type name]. It ignores if the value is a pointer or not.
Types ¶
type NoProtoMessageError ¶
type NoProtoMessageError struct {
// contains filtered or unexported fields
}
NoProtoMessageError is returned when the given value does not implement proto.Message.
func (NoProtoMessageError) Error ¶
func (e NoProtoMessageError) Error() string
type ProtobufMarshaler ¶
ProtobufMarshaler is the default Protocol Buffers marshaler.
func (ProtobufMarshaler) Marshal ¶
func (m ProtobufMarshaler) Marshal(v interface{}) (*message.Message, error)
Marshal marshals the given protobuf's message into watermill's Message.
func (ProtobufMarshaler) Name ¶
func (m ProtobufMarshaler) Name(cmdOrEvent interface{}) string
Name returns the command or event's name.
func (ProtobufMarshaler) NameFromMessage ¶
func (m ProtobufMarshaler) NameFromMessage(msg *message.Message) string
NameFromMessage returns the metadata name value for a given Message.