examples

package
v0.0.0-...-1d97044 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

func (MessageType) Value

func (x MessageType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL