Documentation ¶
Index ¶
- func AsArrayBool(v Any) []bool
- func AsArrayEnum(v Any) [][]any
- func AsArrayFloat(v Any) []float64
- func AsArrayInt(v Any) []int64
- func AsArrayInterface(v Any) []interface{}
- func AsArrayString(v Any) []string
- func AsBool(v Any) bool
- func AsEnum(v Any) []any
- func AsFloat(v Any) float64
- func AsInt(v any) int64
- func AsInterface(v Any) interface{}
- func AsString(v Any) string
- func MakeSymbolId(id string, member string) string
- func SymbolIdToMember(id string) string
- func SymbolIdToObjectId(id string) string
- func SymbolIdToParts(id string) (string, string)
- type Any
- type Args
- type DataWriter
- type KWArgs
- type Message
- func MakeErrorMessage(msgType MsgType, id int64, error string) Message
- func MakeInitMessage(objectId string, props KWArgs) Message
- func MakeInvokeMessage(requestId int64, methodId string, args Args) Message
- func MakeInvokeReplyMessage(requestId int64, methodId string, value Any) Message
- func MakeLinkMessage(objectId string) Message
- func MakePropertyChangeMessage(propertyId string, value Any) Message
- func MakeSetPropertyMessage(propertyId string, value Any) Message
- func MakeSignalMessage(signalId string, args Args) Message
- func MakeUnlinkMessage(objectId string) Message
- func (m Message) AsError() (MsgType, int64, string)
- func (m Message) AsInit() (string, KWArgs)
- func (m Message) AsInvoke() (int64, string, Args)
- func (m Message) AsInvokeReply() (int64, string, Any)
- func (m Message) AsLink() string
- func (m Message) AsPropertyChange() (string, Any)
- func (m Message) AsSetProperty() (string, Any)
- func (m Message) AsSignal() (string, Args)
- func (m Message) AsUnlink() string
- func (m Message) StringType() string
- func (m Message) Type() MsgType
- type MessageConverter
- type MessageFormat
- type MockDataWriter
- type MsgType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsArrayBool ¶
func AsArrayEnum ¶
func AsArrayFloat ¶
func AsArrayInt ¶
func AsArrayInterface ¶
func AsArrayInterface(v Any) []interface{}
func AsArrayString ¶
func AsInterface ¶
func AsInterface(v Any) interface{}
func MakeSymbolId ¶
func SymbolIdToMember ¶
func SymbolIdToObjectId ¶
func SymbolIdToParts ¶
Types ¶
type DataWriter ¶
type KWArgs ¶
func AsArrayStruct ¶
type Message ¶
type Message []any
func MakeInitMessage ¶
func MakeInvokeMessage ¶
func MakeInvokeReplyMessage ¶
func MakeLinkMessage ¶
func MakeSetPropertyMessage ¶
func MakeSignalMessage ¶
func MakeUnlinkMessage ¶
func (Message) AsInvoke ¶
AsInvoke returns the id, name and args of the invoke message message := MsgType, RequestId, MethodId, Args
func (Message) AsInvokeReply ¶
AsInvokeReply returns the id and result of the invoke reply message := MsgType, RequestId, MethodId, Value
func (Message) AsPropertyChange ¶
AsPropertyChange returns the name and value of the property change message := MsgType, PropertyId, Value
func (Message) AsSetProperty ¶
AsSetProperty returns the name and value of the message message := MsgType, PropertyId, Value
func (Message) AsSignal ¶
AsSignal returns the name and args of the signal message message := MsgType, SignalId, Args
func (Message) StringType ¶
type MessageConverter ¶
type MessageConverter struct {
Format MessageFormat
}
type MessageFormat ¶
type MessageFormat int
const ( FormatJson MessageFormat = 1 FormatBson MessageFormat = 2 FormatMsgPack MessageFormat = 3 FormatCbor MessageFormat = 4 )
type MockDataWriter ¶
type MockDataWriter struct { Messages []Message // contains filtered or unexported fields }
func NewMockDataWriter ¶
func NewMockDataWriter() *MockDataWriter
func (*MockDataWriter) Close ¶
func (w *MockDataWriter) Close() error
Click to show internal directories.
Click to hide internal directories.