analytics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Agent) GetDeviceModel

func (m *Agent) GetDeviceModel() string

func (*Agent) GetDeviceType

func (m *Agent) GetDeviceType() string

func (*Agent) GetSerialNumber

func (m *Agent) GetSerialNumber() string

func (*Agent) GetSoftwareFamily

func (m *Agent) GetSoftwareFamily() string

func (*Agent) GetSoftwareVersion

func (m *Agent) GetSoftwareVersion() string

func (*Agent) GetSystemFamily

func (m *Agent) GetSystemFamily() string

func (*Agent) GetSystemVersion

func (m *Agent) GetSystemVersion() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) Reset

func (m *Agent) Reset()

func (*Agent) String

func (m *Agent) String() string

func (*Agent) XXX_DiscardUnknown

func (m *Agent) XXX_DiscardUnknown()

func (*Agent) XXX_Marshal

func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Agent) XXX_Merge

func (m *Agent) XXX_Merge(src proto.Message)

func (*Agent) XXX_Size

func (m *Agent) XXX_Size() int

func (*Agent) XXX_Unmarshal

func (m *Agent) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Status) GetCode

func (m *Status) GetCode() int32

func (*Status) GetMessage

func (m *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Status) XXX_Merge

func (m *Status) XXX_Merge(src proto.Message)

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

func (m *Status) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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