Documentation ¶
Index ¶
- Variables
- type Cmd
- func (*Cmd) Descriptor() ([]byte, []int)
- func (this *Cmd) Equal(that interface{}) bool
- func (m *Cmd) GetId() uint64
- func (m *Cmd) GetKind() CmdType
- func (m *Cmd) GetPayload() []byte
- func (m *Cmd) GetSeq() uint64
- func (this *Cmd) GoString() string
- func (m *Cmd) Marshal() (dAtA []byte, err error)
- func (m *Cmd) MarshalTo(dAtA []byte) (int, error)
- func (m *Cmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Cmd) ProtoMessage()
- func (m *Cmd) Reset()
- func (m *Cmd) Size() (n int)
- func (this *Cmd) String() string
- func (m *Cmd) Unmarshal(dAtA []byte) error
- func (m *Cmd) XXX_DiscardUnknown()
- func (m *Cmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cmd) XXX_Merge(src proto.Message)
- func (m *Cmd) XXX_Size() int
- func (m *Cmd) XXX_Unmarshal(b []byte) error
- type CmdType
- type DeviceCloseCmd
- func (*DeviceCloseCmd) Descriptor() ([]byte, []int)
- func (this *DeviceCloseCmd) Equal(that interface{}) bool
- func (this *DeviceCloseCmd) GoString() string
- func (m *DeviceCloseCmd) Marshal() (dAtA []byte, err error)
- func (m *DeviceCloseCmd) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceCloseCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceCloseCmd) ProtoMessage()
- func (m *DeviceCloseCmd) Reset()
- func (m *DeviceCloseCmd) Size() (n int)
- func (this *DeviceCloseCmd) String() string
- func (m *DeviceCloseCmd) Unmarshal(dAtA []byte) error
- func (m *DeviceCloseCmd) XXX_DiscardUnknown()
- func (m *DeviceCloseCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceCloseCmd) XXX_Merge(src proto.Message)
- func (m *DeviceCloseCmd) XXX_Size() int
- func (m *DeviceCloseCmd) XXX_Unmarshal(b []byte) error
- type DeviceConnectCmd
- func (*DeviceConnectCmd) Descriptor() ([]byte, []int)
- func (this *DeviceConnectCmd) Equal(that interface{}) bool
- func (m *DeviceConnectCmd) GetParams() map[string]string
- func (m *DeviceConnectCmd) GetTarget() string
- func (m *DeviceConnectCmd) GetTls() *TLSConfig
- func (this *DeviceConnectCmd) GoString() string
- func (m *DeviceConnectCmd) Marshal() (dAtA []byte, err error)
- func (m *DeviceConnectCmd) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceConnectCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceConnectCmd) ProtoMessage()
- func (m *DeviceConnectCmd) Reset()
- func (m *DeviceConnectCmd) Size() (n int)
- func (this *DeviceConnectCmd) String() string
- func (m *DeviceConnectCmd) Unmarshal(dAtA []byte) error
- func (m *DeviceConnectCmd) XXX_DiscardUnknown()
- func (m *DeviceConnectCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceConnectCmd) XXX_Merge(src proto.Message)
- func (m *DeviceConnectCmd) XXX_Size() int
- func (m *DeviceConnectCmd) XXX_Unmarshal(b []byte) error
- type DeviceEventMsg
- func (*DeviceEventMsg) Descriptor() ([]byte, []int)
- func (this *DeviceEventMsg) Equal(that interface{}) bool
- func (m *DeviceEventMsg) GetKind() DeviceEventType
- func (this *DeviceEventMsg) GoString() string
- func (m *DeviceEventMsg) Marshal() (dAtA []byte, err error)
- func (m *DeviceEventMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceEventMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceEventMsg) ProtoMessage()
- func (m *DeviceEventMsg) Reset()
- func (m *DeviceEventMsg) Size() (n int)
- func (this *DeviceEventMsg) String() string
- func (m *DeviceEventMsg) Unmarshal(dAtA []byte) error
- func (m *DeviceEventMsg) XXX_DiscardUnknown()
- func (m *DeviceEventMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceEventMsg) XXX_Merge(src proto.Message)
- func (m *DeviceEventMsg) XXX_Size() int
- func (m *DeviceEventMsg) XXX_Unmarshal(b []byte) error
- type DeviceEventType
- type DeviceMetricsCollectCmd
- func (*DeviceMetricsCollectCmd) Descriptor() ([]byte, []int)
- func (this *DeviceMetricsCollectCmd) Equal(that interface{}) bool
- func (m *DeviceMetricsCollectCmd) GetParams() map[string]string
- func (this *DeviceMetricsCollectCmd) GoString() string
- func (m *DeviceMetricsCollectCmd) Marshal() (dAtA []byte, err error)
- func (m *DeviceMetricsCollectCmd) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceMetricsCollectCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceMetricsCollectCmd) ProtoMessage()
- func (m *DeviceMetricsCollectCmd) Reset()
- func (m *DeviceMetricsCollectCmd) Size() (n int)
- func (this *DeviceMetricsCollectCmd) String() string
- func (m *DeviceMetricsCollectCmd) Unmarshal(dAtA []byte) error
- func (m *DeviceMetricsCollectCmd) XXX_DiscardUnknown()
- func (m *DeviceMetricsCollectCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceMetricsCollectCmd) XXX_Merge(src proto.Message)
- func (m *DeviceMetricsCollectCmd) XXX_Size() int
- func (m *DeviceMetricsCollectCmd) XXX_Unmarshal(b []byte) error
- type DeviceMetricsMsg
- func (*DeviceMetricsMsg) Descriptor() ([]byte, []int)
- func (this *DeviceMetricsMsg) Equal(that interface{}) bool
- func (m *DeviceMetricsMsg) GetValues() []*DeviceMetricsMsg_Value
- func (this *DeviceMetricsMsg) GoString() string
- func (m *DeviceMetricsMsg) Marshal() (dAtA []byte, err error)
- func (m *DeviceMetricsMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceMetricsMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceMetricsMsg) ProtoMessage()
- func (m *DeviceMetricsMsg) Reset()
- func (m *DeviceMetricsMsg) Size() (n int)
- func (this *DeviceMetricsMsg) String() string
- func (m *DeviceMetricsMsg) Unmarshal(dAtA []byte) error
- func (m *DeviceMetricsMsg) XXX_DiscardUnknown()
- func (m *DeviceMetricsMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceMetricsMsg) XXX_Merge(src proto.Message)
- func (m *DeviceMetricsMsg) XXX_Size() int
- func (m *DeviceMetricsMsg) XXX_Unmarshal(b []byte) error
- type DeviceMetricsMsg_Value
- func (*DeviceMetricsMsg_Value) Descriptor() ([]byte, []int)
- func (this *DeviceMetricsMsg_Value) Equal(that interface{}) bool
- func (m *DeviceMetricsMsg_Value) GetTimestamp() int64
- func (m *DeviceMetricsMsg_Value) GetValue() float64
- func (this *DeviceMetricsMsg_Value) GoString() string
- func (m *DeviceMetricsMsg_Value) Marshal() (dAtA []byte, err error)
- func (m *DeviceMetricsMsg_Value) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceMetricsMsg_Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceMetricsMsg_Value) ProtoMessage()
- func (m *DeviceMetricsMsg_Value) Reset()
- func (m *DeviceMetricsMsg_Value) Size() (n int)
- func (this *DeviceMetricsMsg_Value) String() string
- func (m *DeviceMetricsMsg_Value) Unmarshal(dAtA []byte) error
- func (m *DeviceMetricsMsg_Value) XXX_DiscardUnknown()
- func (m *DeviceMetricsMsg_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceMetricsMsg_Value) XXX_Merge(src proto.Message)
- func (m *DeviceMetricsMsg_Value) XXX_Size() int
- func (m *DeviceMetricsMsg_Value) XXX_Unmarshal(b []byte) error
- type DeviceOperateCmd
- func (*DeviceOperateCmd) Descriptor() ([]byte, []int)
- func (this *DeviceOperateCmd) Equal(that interface{}) bool
- func (m *DeviceOperateCmd) GetData() []byte
- func (m *DeviceOperateCmd) GetParams() map[string]string
- func (this *DeviceOperateCmd) GoString() string
- func (m *DeviceOperateCmd) Marshal() (dAtA []byte, err error)
- func (m *DeviceOperateCmd) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceOperateCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceOperateCmd) ProtoMessage()
- func (m *DeviceOperateCmd) Reset()
- func (m *DeviceOperateCmd) Size() (n int)
- func (this *DeviceOperateCmd) String() string
- func (m *DeviceOperateCmd) Unmarshal(dAtA []byte) error
- func (m *DeviceOperateCmd) XXX_DiscardUnknown()
- func (m *DeviceOperateCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceOperateCmd) XXX_Merge(src proto.Message)
- func (m *DeviceOperateCmd) XXX_Size() int
- func (m *DeviceOperateCmd) XXX_Unmarshal(b []byte) error
- type DeviceOperationResultMsg
- func (*DeviceOperationResultMsg) Descriptor() ([]byte, []int)
- func (this *DeviceOperationResultMsg) Equal(that interface{}) bool
- func (m *DeviceOperationResultMsg) GetResult() [][]byte
- func (this *DeviceOperationResultMsg) GoString() string
- func (m *DeviceOperationResultMsg) Marshal() (dAtA []byte, err error)
- func (m *DeviceOperationResultMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *DeviceOperationResultMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeviceOperationResultMsg) ProtoMessage()
- func (m *DeviceOperationResultMsg) Reset()
- func (m *DeviceOperationResultMsg) Size() (n int)
- func (this *DeviceOperationResultMsg) String() string
- func (m *DeviceOperationResultMsg) Unmarshal(dAtA []byte) error
- func (m *DeviceOperationResultMsg) XXX_DiscardUnknown()
- func (m *DeviceOperationResultMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceOperationResultMsg) XXX_Merge(src proto.Message)
- func (m *DeviceOperationResultMsg) XXX_Size() int
- func (m *DeviceOperationResultMsg) XXX_Unmarshal(b []byte) error
- type DoneMsg
- func (*DoneMsg) Descriptor() ([]byte, []int)
- func (this *DoneMsg) Equal(that interface{}) bool
- func (this *DoneMsg) GoString() string
- func (m *DoneMsg) Marshal() (dAtA []byte, err error)
- func (m *DoneMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *DoneMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DoneMsg) ProtoMessage()
- func (m *DoneMsg) Reset()
- func (m *DoneMsg) Size() (n int)
- func (this *DoneMsg) String() string
- func (m *DoneMsg) Unmarshal(dAtA []byte) error
- func (m *DoneMsg) XXX_DiscardUnknown()
- func (m *DoneMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DoneMsg) XXX_Merge(src proto.Message)
- func (m *DoneMsg) XXX_Size() int
- func (m *DoneMsg) XXX_Unmarshal(b []byte) error
- type ErrorMsg
- func (*ErrorMsg) Descriptor() ([]byte, []int)
- func (this *ErrorMsg) Equal(that interface{}) bool
- func (m *ErrorMsg) GetDescription() string
- func (this *ErrorMsg) GoString() string
- func (m *ErrorMsg) Marshal() (dAtA []byte, err error)
- func (m *ErrorMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *ErrorMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ErrorMsg) ProtoMessage()
- func (m *ErrorMsg) Reset()
- func (m *ErrorMsg) Size() (n int)
- func (this *ErrorMsg) String() string
- func (m *ErrorMsg) Unmarshal(dAtA []byte) error
- func (m *ErrorMsg) XXX_DiscardUnknown()
- func (m *ErrorMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorMsg) XXX_Merge(src proto.Message)
- func (m *ErrorMsg) XXX_Size() int
- func (m *ErrorMsg) XXX_Unmarshal(b []byte) error
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (this *Msg) Equal(that interface{}) bool
- func (m *Msg) GetAck() uint64
- func (m *Msg) GetId() uint64
- func (m *Msg) GetKind() MsgType
- func (m *Msg) GetPayload() []byte
- func (this *Msg) GoString() string
- func (m *Msg) Marshal() (dAtA []byte, err error)
- func (m *Msg) MarshalTo(dAtA []byte) (int, error)
- func (m *Msg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) Size() (n int)
- func (this *Msg) String() string
- func (m *Msg) Unmarshal(dAtA []byte) error
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Msg) XXX_Merge(src proto.Message)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
- type MsgType
- type RegisterMsg
- func (*RegisterMsg) Descriptor() ([]byte, []int)
- func (this *RegisterMsg) Equal(that interface{}) bool
- func (m *RegisterMsg) GetName() string
- func (this *RegisterMsg) GoString() string
- func (m *RegisterMsg) Marshal() (dAtA []byte, err error)
- func (m *RegisterMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterMsg) ProtoMessage()
- func (m *RegisterMsg) Reset()
- func (m *RegisterMsg) Size() (n int)
- func (this *RegisterMsg) String() string
- func (m *RegisterMsg) Unmarshal(dAtA []byte) error
- func (m *RegisterMsg) XXX_DiscardUnknown()
- func (m *RegisterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterMsg) XXX_Merge(src proto.Message)
- func (m *RegisterMsg) XXX_Size() int
- func (m *RegisterMsg) XXX_Unmarshal(b []byte) error
- type TLSConfig
- func (*TLSConfig) Descriptor() ([]byte, []int)
- func (this *TLSConfig) Equal(that interface{}) bool
- func (m *TLSConfig) GetCaCert() []byte
- func (m *TLSConfig) GetCert() []byte
- func (m *TLSConfig) GetCipherSuites() []uint32
- func (m *TLSConfig) GetInsecureSkipVerify() bool
- func (m *TLSConfig) GetKey() []byte
- func (m *TLSConfig) GetMaxVersion() uint32
- func (m *TLSConfig) GetMinVersion() uint32
- func (m *TLSConfig) GetNextProtos() []string
- func (m *TLSConfig) GetServerName() string
- func (c *TLSConfig) GetTLSConfig() (_ *tls.Config, err error)
- func (this *TLSConfig) GoString() string
- func (m *TLSConfig) Marshal() (dAtA []byte, err error)
- func (m *TLSConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *TLSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TLSConfig) ProtoMessage()
- func (m *TLSConfig) Reset()
- func (m *TLSConfig) Size() (n int)
- func (this *TLSConfig) String() string
- func (m *TLSConfig) Unmarshal(dAtA []byte) error
- func (m *TLSConfig) XXX_DiscardUnknown()
- func (m *TLSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TLSConfig) XXX_Merge(src proto.Message)
- func (m *TLSConfig) XXX_Size() int
- func (m *TLSConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthDevice = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDevice = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDevice = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthProto = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProto = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProto = fmt.Errorf("proto: unexpected end of group") )
View Source
var CmdType_name = map[int32]string{
0: "_INVALID_CMD",
11: "CMD_DEV_CONNECT",
12: "CMD_DEV_OPERATE",
13: "CMD_DEV_COLLECT_METRICS",
14: "CMD_DEV_CLOSE",
}
View Source
var CmdType_value = map[string]int32{
"_INVALID_CMD": 0,
"CMD_DEV_CONNECT": 11,
"CMD_DEV_OPERATE": 12,
"CMD_DEV_COLLECT_METRICS": 13,
"CMD_DEV_CLOSE": 14,
}
View Source
var DeviceEventType_name = map[int32]string{
0: "_INVALID_DEV_EVENT",
}
View Source
var DeviceEventType_value = map[string]int32{
"_INVALID_DEV_EVENT": 0,
}
View Source
var MsgType_name = map[int32]string{
0: "_INVALID_MSG",
1: "MSG_ERROR",
2: "MSG_DONE",
3: "MSG_REGISTER",
11: "MSG_DEV_OPERATION_RESULT",
12: "MSG_DEV_METRICS",
13: "MSG_DEV_EVENTS",
}
View Source
var MsgType_value = map[string]int32{
"_INVALID_MSG": 0,
"MSG_ERROR": 1,
"MSG_DONE": 2,
"MSG_REGISTER": 3,
"MSG_DEV_OPERATION_RESULT": 11,
"MSG_DEV_METRICS": 12,
"MSG_DEV_EVENTS": 13,
}
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct { Kind CmdType `protobuf:"varint,1,opt,name=kind,proto3,enum=arhat.CmdType" json:"kind,omitempty"` // id assigned by the arhat extension manager Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Seq uint64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` }
func (*Cmd) Descriptor ¶
func (*Cmd) GetPayload ¶
func (*Cmd) ProtoMessage ¶
func (*Cmd) ProtoMessage()
func (*Cmd) XXX_DiscardUnknown ¶
func (m *Cmd) XXX_DiscardUnknown()
func (*Cmd) XXX_Unmarshal ¶
type DeviceCloseCmd ¶
type DeviceCloseCmd struct { }
func (*DeviceCloseCmd) Descriptor ¶
func (*DeviceCloseCmd) Descriptor() ([]byte, []int)
func (*DeviceCloseCmd) Equal ¶
func (this *DeviceCloseCmd) Equal(that interface{}) bool
func (*DeviceCloseCmd) GoString ¶
func (this *DeviceCloseCmd) GoString() string
func (*DeviceCloseCmd) Marshal ¶
func (m *DeviceCloseCmd) Marshal() (dAtA []byte, err error)
func (*DeviceCloseCmd) MarshalToSizedBuffer ¶
func (m *DeviceCloseCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceCloseCmd) ProtoMessage ¶
func (*DeviceCloseCmd) ProtoMessage()
func (*DeviceCloseCmd) Reset ¶
func (m *DeviceCloseCmd) Reset()
func (*DeviceCloseCmd) Size ¶
func (m *DeviceCloseCmd) Size() (n int)
func (*DeviceCloseCmd) String ¶
func (this *DeviceCloseCmd) String() string
func (*DeviceCloseCmd) Unmarshal ¶
func (m *DeviceCloseCmd) Unmarshal(dAtA []byte) error
func (*DeviceCloseCmd) XXX_DiscardUnknown ¶
func (m *DeviceCloseCmd) XXX_DiscardUnknown()
func (*DeviceCloseCmd) XXX_Marshal ¶
func (m *DeviceCloseCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceCloseCmd) XXX_Merge ¶
func (m *DeviceCloseCmd) XXX_Merge(src proto.Message)
func (*DeviceCloseCmd) XXX_Size ¶
func (m *DeviceCloseCmd) XXX_Size() int
func (*DeviceCloseCmd) XXX_Unmarshal ¶
func (m *DeviceCloseCmd) XXX_Unmarshal(b []byte) error
type DeviceConnectCmd ¶
type DeviceConnectCmd struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` Params map[string]string `` /* 153-byte string literal not displayed */ Tls *TLSConfig `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"` }
func (*DeviceConnectCmd) Descriptor ¶
func (*DeviceConnectCmd) Descriptor() ([]byte, []int)
func (*DeviceConnectCmd) Equal ¶
func (this *DeviceConnectCmd) Equal(that interface{}) bool
func (*DeviceConnectCmd) GetParams ¶
func (m *DeviceConnectCmd) GetParams() map[string]string
func (*DeviceConnectCmd) GetTarget ¶
func (m *DeviceConnectCmd) GetTarget() string
func (*DeviceConnectCmd) GetTls ¶
func (m *DeviceConnectCmd) GetTls() *TLSConfig
func (*DeviceConnectCmd) GoString ¶
func (this *DeviceConnectCmd) GoString() string
func (*DeviceConnectCmd) Marshal ¶
func (m *DeviceConnectCmd) Marshal() (dAtA []byte, err error)
func (*DeviceConnectCmd) MarshalToSizedBuffer ¶
func (m *DeviceConnectCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceConnectCmd) ProtoMessage ¶
func (*DeviceConnectCmd) ProtoMessage()
func (*DeviceConnectCmd) Reset ¶
func (m *DeviceConnectCmd) Reset()
func (*DeviceConnectCmd) Size ¶
func (m *DeviceConnectCmd) Size() (n int)
func (*DeviceConnectCmd) String ¶
func (this *DeviceConnectCmd) String() string
func (*DeviceConnectCmd) Unmarshal ¶
func (m *DeviceConnectCmd) Unmarshal(dAtA []byte) error
func (*DeviceConnectCmd) XXX_DiscardUnknown ¶
func (m *DeviceConnectCmd) XXX_DiscardUnknown()
func (*DeviceConnectCmd) XXX_Marshal ¶
func (m *DeviceConnectCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceConnectCmd) XXX_Merge ¶
func (m *DeviceConnectCmd) XXX_Merge(src proto.Message)
func (*DeviceConnectCmd) XXX_Size ¶
func (m *DeviceConnectCmd) XXX_Size() int
func (*DeviceConnectCmd) XXX_Unmarshal ¶
func (m *DeviceConnectCmd) XXX_Unmarshal(b []byte) error
type DeviceEventMsg ¶
type DeviceEventMsg struct {
Kind DeviceEventType `protobuf:"varint,1,opt,name=kind,proto3,enum=arhat.DeviceEventType" json:"kind,omitempty"`
}
func (*DeviceEventMsg) Descriptor ¶
func (*DeviceEventMsg) Descriptor() ([]byte, []int)
func (*DeviceEventMsg) Equal ¶
func (this *DeviceEventMsg) Equal(that interface{}) bool
func (*DeviceEventMsg) GetKind ¶
func (m *DeviceEventMsg) GetKind() DeviceEventType
func (*DeviceEventMsg) GoString ¶
func (this *DeviceEventMsg) GoString() string
func (*DeviceEventMsg) Marshal ¶
func (m *DeviceEventMsg) Marshal() (dAtA []byte, err error)
func (*DeviceEventMsg) MarshalToSizedBuffer ¶
func (m *DeviceEventMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceEventMsg) ProtoMessage ¶
func (*DeviceEventMsg) ProtoMessage()
func (*DeviceEventMsg) Reset ¶
func (m *DeviceEventMsg) Reset()
func (*DeviceEventMsg) Size ¶
func (m *DeviceEventMsg) Size() (n int)
func (*DeviceEventMsg) String ¶
func (this *DeviceEventMsg) String() string
func (*DeviceEventMsg) Unmarshal ¶
func (m *DeviceEventMsg) Unmarshal(dAtA []byte) error
func (*DeviceEventMsg) XXX_DiscardUnknown ¶
func (m *DeviceEventMsg) XXX_DiscardUnknown()
func (*DeviceEventMsg) XXX_Marshal ¶
func (m *DeviceEventMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceEventMsg) XXX_Merge ¶
func (m *DeviceEventMsg) XXX_Merge(src proto.Message)
func (*DeviceEventMsg) XXX_Size ¶
func (m *DeviceEventMsg) XXX_Size() int
func (*DeviceEventMsg) XXX_Unmarshal ¶
func (m *DeviceEventMsg) XXX_Unmarshal(b []byte) error
type DeviceEventType ¶
type DeviceEventType int32
func (DeviceEventType) EnumDescriptor ¶
func (DeviceEventType) EnumDescriptor() ([]byte, []int)
func (DeviceEventType) String ¶
func (x DeviceEventType) String() string
type DeviceMetricsCollectCmd ¶
type DeviceMetricsCollectCmd struct {
Params map[string]string `` /* 153-byte string literal not displayed */
}
func (*DeviceMetricsCollectCmd) Descriptor ¶
func (*DeviceMetricsCollectCmd) Descriptor() ([]byte, []int)
func (*DeviceMetricsCollectCmd) Equal ¶
func (this *DeviceMetricsCollectCmd) Equal(that interface{}) bool
func (*DeviceMetricsCollectCmd) GetParams ¶
func (m *DeviceMetricsCollectCmd) GetParams() map[string]string
func (*DeviceMetricsCollectCmd) GoString ¶
func (this *DeviceMetricsCollectCmd) GoString() string
func (*DeviceMetricsCollectCmd) Marshal ¶
func (m *DeviceMetricsCollectCmd) Marshal() (dAtA []byte, err error)
func (*DeviceMetricsCollectCmd) MarshalTo ¶
func (m *DeviceMetricsCollectCmd) MarshalTo(dAtA []byte) (int, error)
func (*DeviceMetricsCollectCmd) MarshalToSizedBuffer ¶
func (m *DeviceMetricsCollectCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceMetricsCollectCmd) ProtoMessage ¶
func (*DeviceMetricsCollectCmd) ProtoMessage()
func (*DeviceMetricsCollectCmd) Reset ¶
func (m *DeviceMetricsCollectCmd) Reset()
func (*DeviceMetricsCollectCmd) Size ¶
func (m *DeviceMetricsCollectCmd) Size() (n int)
func (*DeviceMetricsCollectCmd) String ¶
func (this *DeviceMetricsCollectCmd) String() string
func (*DeviceMetricsCollectCmd) Unmarshal ¶
func (m *DeviceMetricsCollectCmd) Unmarshal(dAtA []byte) error
func (*DeviceMetricsCollectCmd) XXX_DiscardUnknown ¶
func (m *DeviceMetricsCollectCmd) XXX_DiscardUnknown()
func (*DeviceMetricsCollectCmd) XXX_Marshal ¶
func (m *DeviceMetricsCollectCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceMetricsCollectCmd) XXX_Merge ¶
func (m *DeviceMetricsCollectCmd) XXX_Merge(src proto.Message)
func (*DeviceMetricsCollectCmd) XXX_Size ¶
func (m *DeviceMetricsCollectCmd) XXX_Size() int
func (*DeviceMetricsCollectCmd) XXX_Unmarshal ¶
func (m *DeviceMetricsCollectCmd) XXX_Unmarshal(b []byte) error
type DeviceMetricsMsg ¶
type DeviceMetricsMsg struct {
Values []*DeviceMetricsMsg_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
func (*DeviceMetricsMsg) Descriptor ¶
func (*DeviceMetricsMsg) Descriptor() ([]byte, []int)
func (*DeviceMetricsMsg) Equal ¶
func (this *DeviceMetricsMsg) Equal(that interface{}) bool
func (*DeviceMetricsMsg) GetValues ¶
func (m *DeviceMetricsMsg) GetValues() []*DeviceMetricsMsg_Value
func (*DeviceMetricsMsg) GoString ¶
func (this *DeviceMetricsMsg) GoString() string
func (*DeviceMetricsMsg) Marshal ¶
func (m *DeviceMetricsMsg) Marshal() (dAtA []byte, err error)
func (*DeviceMetricsMsg) MarshalToSizedBuffer ¶
func (m *DeviceMetricsMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceMetricsMsg) ProtoMessage ¶
func (*DeviceMetricsMsg) ProtoMessage()
func (*DeviceMetricsMsg) Reset ¶
func (m *DeviceMetricsMsg) Reset()
func (*DeviceMetricsMsg) Size ¶
func (m *DeviceMetricsMsg) Size() (n int)
func (*DeviceMetricsMsg) String ¶
func (this *DeviceMetricsMsg) String() string
func (*DeviceMetricsMsg) Unmarshal ¶
func (m *DeviceMetricsMsg) Unmarshal(dAtA []byte) error
func (*DeviceMetricsMsg) XXX_DiscardUnknown ¶
func (m *DeviceMetricsMsg) XXX_DiscardUnknown()
func (*DeviceMetricsMsg) XXX_Marshal ¶
func (m *DeviceMetricsMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceMetricsMsg) XXX_Merge ¶
func (m *DeviceMetricsMsg) XXX_Merge(src proto.Message)
func (*DeviceMetricsMsg) XXX_Size ¶
func (m *DeviceMetricsMsg) XXX_Size() int
func (*DeviceMetricsMsg) XXX_Unmarshal ¶
func (m *DeviceMetricsMsg) XXX_Unmarshal(b []byte) error
type DeviceMetricsMsg_Value ¶
type DeviceMetricsMsg_Value struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // unix timestamp Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*DeviceMetricsMsg_Value) Descriptor ¶
func (*DeviceMetricsMsg_Value) Descriptor() ([]byte, []int)
func (*DeviceMetricsMsg_Value) Equal ¶
func (this *DeviceMetricsMsg_Value) Equal(that interface{}) bool
func (*DeviceMetricsMsg_Value) GetTimestamp ¶
func (m *DeviceMetricsMsg_Value) GetTimestamp() int64
func (*DeviceMetricsMsg_Value) GetValue ¶
func (m *DeviceMetricsMsg_Value) GetValue() float64
func (*DeviceMetricsMsg_Value) GoString ¶
func (this *DeviceMetricsMsg_Value) GoString() string
func (*DeviceMetricsMsg_Value) Marshal ¶
func (m *DeviceMetricsMsg_Value) Marshal() (dAtA []byte, err error)
func (*DeviceMetricsMsg_Value) MarshalTo ¶
func (m *DeviceMetricsMsg_Value) MarshalTo(dAtA []byte) (int, error)
func (*DeviceMetricsMsg_Value) MarshalToSizedBuffer ¶
func (m *DeviceMetricsMsg_Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceMetricsMsg_Value) ProtoMessage ¶
func (*DeviceMetricsMsg_Value) ProtoMessage()
func (*DeviceMetricsMsg_Value) Reset ¶
func (m *DeviceMetricsMsg_Value) Reset()
func (*DeviceMetricsMsg_Value) Size ¶
func (m *DeviceMetricsMsg_Value) Size() (n int)
func (*DeviceMetricsMsg_Value) String ¶
func (this *DeviceMetricsMsg_Value) String() string
func (*DeviceMetricsMsg_Value) Unmarshal ¶
func (m *DeviceMetricsMsg_Value) Unmarshal(dAtA []byte) error
func (*DeviceMetricsMsg_Value) XXX_DiscardUnknown ¶
func (m *DeviceMetricsMsg_Value) XXX_DiscardUnknown()
func (*DeviceMetricsMsg_Value) XXX_Marshal ¶
func (m *DeviceMetricsMsg_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceMetricsMsg_Value) XXX_Merge ¶
func (m *DeviceMetricsMsg_Value) XXX_Merge(src proto.Message)
func (*DeviceMetricsMsg_Value) XXX_Size ¶
func (m *DeviceMetricsMsg_Value) XXX_Size() int
func (*DeviceMetricsMsg_Value) XXX_Unmarshal ¶
func (m *DeviceMetricsMsg_Value) XXX_Unmarshal(b []byte) error
type DeviceOperateCmd ¶
type DeviceOperateCmd struct { Params map[string]string `` /* 153-byte string literal not displayed */ // (optional) operation data Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*DeviceOperateCmd) Descriptor ¶
func (*DeviceOperateCmd) Descriptor() ([]byte, []int)
func (*DeviceOperateCmd) Equal ¶
func (this *DeviceOperateCmd) Equal(that interface{}) bool
func (*DeviceOperateCmd) GetData ¶
func (m *DeviceOperateCmd) GetData() []byte
func (*DeviceOperateCmd) GetParams ¶
func (m *DeviceOperateCmd) GetParams() map[string]string
func (*DeviceOperateCmd) GoString ¶
func (this *DeviceOperateCmd) GoString() string
func (*DeviceOperateCmd) Marshal ¶
func (m *DeviceOperateCmd) Marshal() (dAtA []byte, err error)
func (*DeviceOperateCmd) MarshalToSizedBuffer ¶
func (m *DeviceOperateCmd) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceOperateCmd) ProtoMessage ¶
func (*DeviceOperateCmd) ProtoMessage()
func (*DeviceOperateCmd) Reset ¶
func (m *DeviceOperateCmd) Reset()
func (*DeviceOperateCmd) Size ¶
func (m *DeviceOperateCmd) Size() (n int)
func (*DeviceOperateCmd) String ¶
func (this *DeviceOperateCmd) String() string
func (*DeviceOperateCmd) Unmarshal ¶
func (m *DeviceOperateCmd) Unmarshal(dAtA []byte) error
func (*DeviceOperateCmd) XXX_DiscardUnknown ¶
func (m *DeviceOperateCmd) XXX_DiscardUnknown()
func (*DeviceOperateCmd) XXX_Marshal ¶
func (m *DeviceOperateCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceOperateCmd) XXX_Merge ¶
func (m *DeviceOperateCmd) XXX_Merge(src proto.Message)
func (*DeviceOperateCmd) XXX_Size ¶
func (m *DeviceOperateCmd) XXX_Size() int
func (*DeviceOperateCmd) XXX_Unmarshal ¶
func (m *DeviceOperateCmd) XXX_Unmarshal(b []byte) error
type DeviceOperationResultMsg ¶
type DeviceOperationResultMsg struct {
Result [][]byte `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
}
func (*DeviceOperationResultMsg) Descriptor ¶
func (*DeviceOperationResultMsg) Descriptor() ([]byte, []int)
func (*DeviceOperationResultMsg) Equal ¶
func (this *DeviceOperationResultMsg) Equal(that interface{}) bool
func (*DeviceOperationResultMsg) GetResult ¶
func (m *DeviceOperationResultMsg) GetResult() [][]byte
func (*DeviceOperationResultMsg) GoString ¶
func (this *DeviceOperationResultMsg) GoString() string
func (*DeviceOperationResultMsg) Marshal ¶
func (m *DeviceOperationResultMsg) Marshal() (dAtA []byte, err error)
func (*DeviceOperationResultMsg) MarshalTo ¶
func (m *DeviceOperationResultMsg) MarshalTo(dAtA []byte) (int, error)
func (*DeviceOperationResultMsg) MarshalToSizedBuffer ¶
func (m *DeviceOperationResultMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeviceOperationResultMsg) ProtoMessage ¶
func (*DeviceOperationResultMsg) ProtoMessage()
func (*DeviceOperationResultMsg) Reset ¶
func (m *DeviceOperationResultMsg) Reset()
func (*DeviceOperationResultMsg) Size ¶
func (m *DeviceOperationResultMsg) Size() (n int)
func (*DeviceOperationResultMsg) String ¶
func (this *DeviceOperationResultMsg) String() string
func (*DeviceOperationResultMsg) Unmarshal ¶
func (m *DeviceOperationResultMsg) Unmarshal(dAtA []byte) error
func (*DeviceOperationResultMsg) XXX_DiscardUnknown ¶
func (m *DeviceOperationResultMsg) XXX_DiscardUnknown()
func (*DeviceOperationResultMsg) XXX_Marshal ¶
func (m *DeviceOperationResultMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceOperationResultMsg) XXX_Merge ¶
func (m *DeviceOperationResultMsg) XXX_Merge(src proto.Message)
func (*DeviceOperationResultMsg) XXX_Size ¶
func (m *DeviceOperationResultMsg) XXX_Size() int
func (*DeviceOperationResultMsg) XXX_Unmarshal ¶
func (m *DeviceOperationResultMsg) XXX_Unmarshal(b []byte) error
type DoneMsg ¶
type DoneMsg struct { }
func (*DoneMsg) Descriptor ¶
func (*DoneMsg) MarshalToSizedBuffer ¶
func (*DoneMsg) ProtoMessage ¶
func (*DoneMsg) ProtoMessage()
func (*DoneMsg) XXX_DiscardUnknown ¶
func (m *DoneMsg) XXX_DiscardUnknown()
func (*DoneMsg) XXX_Marshal ¶
func (*DoneMsg) XXX_Unmarshal ¶
type ErrorMsg ¶
type ErrorMsg struct {
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
}
func (*ErrorMsg) Descriptor ¶
func (*ErrorMsg) GetDescription ¶
func (*ErrorMsg) MarshalToSizedBuffer ¶
func (*ErrorMsg) ProtoMessage ¶
func (*ErrorMsg) ProtoMessage()
func (*ErrorMsg) XXX_DiscardUnknown ¶
func (m *ErrorMsg) XXX_DiscardUnknown()
func (*ErrorMsg) XXX_Marshal ¶
func (*ErrorMsg) XXX_Unmarshal ¶
type Msg ¶
type Msg struct { Kind MsgType `protobuf:"varint,1,opt,name=kind,proto3,enum=arhat.MsgType" json:"kind,omitempty"` // id assigned by the arhat extension manager Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // (optional) if this is an answer for a Cmd, set ack to seq in Cmd Ack uint64 `protobuf:"varint,3,opt,name=ack,proto3" json:"ack,omitempty"` Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` }
func (*Msg) Descriptor ¶
func (*Msg) GetPayload ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_Unmarshal ¶
type RegisterMsg ¶
type RegisterMsg struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*RegisterMsg) Descriptor ¶
func (*RegisterMsg) Descriptor() ([]byte, []int)
func (*RegisterMsg) Equal ¶
func (this *RegisterMsg) Equal(that interface{}) bool
func (*RegisterMsg) GetName ¶
func (m *RegisterMsg) GetName() string
func (*RegisterMsg) GoString ¶
func (this *RegisterMsg) GoString() string
func (*RegisterMsg) Marshal ¶
func (m *RegisterMsg) Marshal() (dAtA []byte, err error)
func (*RegisterMsg) MarshalToSizedBuffer ¶
func (m *RegisterMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterMsg) ProtoMessage ¶
func (*RegisterMsg) ProtoMessage()
func (*RegisterMsg) Reset ¶
func (m *RegisterMsg) Reset()
func (*RegisterMsg) Size ¶
func (m *RegisterMsg) Size() (n int)
func (*RegisterMsg) String ¶
func (this *RegisterMsg) String() string
func (*RegisterMsg) Unmarshal ¶
func (m *RegisterMsg) Unmarshal(dAtA []byte) error
func (*RegisterMsg) XXX_DiscardUnknown ¶
func (m *RegisterMsg) XXX_DiscardUnknown()
func (*RegisterMsg) XXX_Marshal ¶
func (m *RegisterMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterMsg) XXX_Merge ¶
func (m *RegisterMsg) XXX_Merge(src proto.Message)
func (*RegisterMsg) XXX_Size ¶
func (m *RegisterMsg) XXX_Size() int
func (*RegisterMsg) XXX_Unmarshal ¶
func (m *RegisterMsg) XXX_Unmarshal(b []byte) error
type TLSConfig ¶
type TLSConfig struct { ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` InsecureSkipVerify bool `protobuf:"varint,2,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` MinVersion uint32 `protobuf:"varint,3,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"` MaxVersion uint32 `protobuf:"varint,4,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` CaCert []byte `protobuf:"bytes,5,opt,name=ca_cert,json=caCert,proto3" json:"ca_cert,omitempty"` Cert []byte `protobuf:"bytes,6,opt,name=cert,proto3" json:"cert,omitempty"` Key []byte `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` CipherSuites []uint32 `protobuf:"varint,8,rep,packed,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"` NextProtos []string `protobuf:"bytes,9,rep,name=next_protos,json=nextProtos,proto3" json:"next_protos,omitempty"` }
func (*TLSConfig) Descriptor ¶
func (*TLSConfig) GetCipherSuites ¶
func (*TLSConfig) GetInsecureSkipVerify ¶
func (*TLSConfig) GetMaxVersion ¶
func (*TLSConfig) GetMinVersion ¶
func (*TLSConfig) GetNextProtos ¶
func (*TLSConfig) GetServerName ¶
func (*TLSConfig) MarshalToSizedBuffer ¶
func (*TLSConfig) ProtoMessage ¶
func (*TLSConfig) ProtoMessage()
func (*TLSConfig) XXX_DiscardUnknown ¶
func (m *TLSConfig) XXX_DiscardUnknown()
func (*TLSConfig) XXX_Marshal ¶
func (*TLSConfig) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.