Documentation ¶
Index ¶
- func MessageTypeNames() []string
- type MessageType
- func (x *MessageType) Get() interface{}
- func (x MessageType) MarshalText() ([]byte, error)
- func (x *MessageType) Scan(value interface{}) error
- func (x *MessageType) Set(val string) error
- func (x MessageType) String() string
- func (x *MessageType) Type() string
- func (x *MessageType) UnmarshalText(text []byte) error
- func (x MessageType) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MessageTypeNames ¶
func MessageTypeNames() []string
MessageTypeNames returns a list of possible string values of MessageType.
Types ¶
type MessageType ¶
type MessageType int32
MessageType x ENUM( Error Request Response Event Unknown )
const ( // Error is a MessageType of type Error Error MessageType = iota // Request is a MessageType of type Request Request // Response is a MessageType of type Response Response // Event is a MessageType of type Event Event // Unknown is a MessageType of type Unknown Unknown )
func ParseMessageType ¶
func ParseMessageType(name string) (MessageType, error)
ParseMessageType attempts to convert a string to a MessageType
func (*MessageType) Get ¶
func (x *MessageType) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (MessageType) MarshalText ¶
func (x MessageType) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method
func (*MessageType) Scan ¶
func (x *MessageType) Scan(value interface{}) error
Scan implements the Scanner interface.
func (*MessageType) Set ¶
func (x *MessageType) Set(val string) error
Set implements the Golang flag.Value interface func.
func (MessageType) String ¶
func (x MessageType) String() string
String implements the Stringer interface.
func (*MessageType) Type ¶
func (x *MessageType) Type() string
Type implements the github.com/spf13/pFlag Value interface.
func (*MessageType) UnmarshalText ¶
func (x *MessageType) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method
Click to show internal directories.
Click to hide internal directories.