Documentation
¶
Index ¶
- func RegisterRecordHandler(s server.Server, hdlr RecordHandler, opts ...server.HandlerOption) error
- type Agent
- func (*Agent) Descriptor() ([]byte, []int)
- func (m *Agent) GetDeviceModel() string
- func (m *Agent) GetDeviceType() string
- func (m *Agent) GetSerialNumber() string
- func (m *Agent) GetSoftwareFamily() string
- func (m *Agent) GetSoftwareVersion() string
- func (m *Agent) GetSystemFamily() string
- func (m *Agent) GetSystemVersion() string
- func (*Agent) ProtoMessage()
- func (m *Agent) Reset()
- func (m *Agent) String() string
- func (m *Agent) XXX_DiscardUnknown()
- func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Agent) XXX_Merge(src proto.Message)
- func (m *Agent) XXX_Size() int
- func (m *Agent) XXX_Unmarshal(b []byte) error
- type BlankResponse
- func (*BlankResponse) Descriptor() ([]byte, []int)
- func (m *BlankResponse) GetStatus() *Status
- func (*BlankResponse) ProtoMessage()
- func (m *BlankResponse) Reset()
- func (m *BlankResponse) String() string
- func (m *BlankResponse) XXX_DiscardUnknown()
- func (m *BlankResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlankResponse) XXX_Merge(src proto.Message)
- func (m *BlankResponse) XXX_Size() int
- func (m *BlankResponse) XXX_Unmarshal(b []byte) error
- type RecordHandler
- type RecordService
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetCode() int32
- func (m *Status) GetMessage() string
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) String() string
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRecordHandler ¶
func RegisterRecordHandler(s server.Server, hdlr RecordHandler, opts ...server.HandlerOption) error
Types ¶
type Agent ¶
type Agent struct { SerialNumber string `protobuf:"bytes,1,opt,name=serialNumber,proto3" json:"serialNumber,omitempty"` SoftwareFamily string `protobuf:"bytes,2,opt,name=softwareFamily,proto3" json:"softwareFamily,omitempty"` SoftwareVersion string `protobuf:"bytes,3,opt,name=softwareVersion,proto3" json:"softwareVersion,omitempty"` SystemFamily string `protobuf:"bytes,4,opt,name=systemFamily,proto3" json:"systemFamily,omitempty"` SystemVersion string `protobuf:"bytes,5,opt,name=systemVersion,proto3" json:"systemVersion,omitempty"` DeviceModel string `protobuf:"bytes,6,opt,name=deviceModel,proto3" json:"deviceModel,omitempty"` DeviceType string `protobuf:"bytes,7,opt,name=deviceType,proto3" json:"deviceType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Agent) Descriptor ¶
func (*Agent) GetDeviceModel ¶
func (*Agent) GetDeviceType ¶
func (*Agent) GetSerialNumber ¶
func (*Agent) GetSoftwareFamily ¶
func (*Agent) GetSoftwareVersion ¶
func (*Agent) GetSystemFamily ¶
func (*Agent) GetSystemVersion ¶
func (*Agent) ProtoMessage ¶
func (*Agent) ProtoMessage()
func (*Agent) XXX_DiscardUnknown ¶
func (m *Agent) XXX_DiscardUnknown()
func (*Agent) XXX_Marshal ¶
func (*Agent) XXX_Unmarshal ¶
type BlankResponse ¶
type BlankResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
空白回复
func (*BlankResponse) Descriptor ¶
func (*BlankResponse) Descriptor() ([]byte, []int)
func (*BlankResponse) GetStatus ¶
func (m *BlankResponse) GetStatus() *Status
func (*BlankResponse) ProtoMessage ¶
func (*BlankResponse) ProtoMessage()
func (*BlankResponse) Reset ¶
func (m *BlankResponse) Reset()
func (*BlankResponse) String ¶
func (m *BlankResponse) String() string
func (*BlankResponse) XXX_DiscardUnknown ¶
func (m *BlankResponse) XXX_DiscardUnknown()
func (*BlankResponse) XXX_Marshal ¶
func (m *BlankResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlankResponse) XXX_Merge ¶
func (m *BlankResponse) XXX_Merge(src proto.Message)
func (*BlankResponse) XXX_Size ¶
func (m *BlankResponse) XXX_Size() int
func (*BlankResponse) XXX_Unmarshal ¶
func (m *BlankResponse) XXX_Unmarshal(b []byte) error
type RecordHandler ¶
type RecordHandler interface { // 活动 Wake(context.Context, *Agent, *BlankResponse) error }
type RecordService ¶
type RecordService interface { // 活动 Wake(ctx context.Context, in *Agent, opts ...client.CallOption) (*BlankResponse, error) }
func NewRecordService ¶
func NewRecordService(name string, c client.Client) RecordService
type Status ¶
type Status struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
状态
func (*Status) Descriptor ¶
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.