Documentation ¶
Index ¶
- Variables
- func NewGeneratorEndpoints() []*api.Endpoint
- func NewHealthyEndpoints() []*api.Endpoint
- func NewTrackerEndpoints() []*api.Endpoint
- func RegisterGeneratorHandler(s server.Server, hdlr GeneratorHandler, opts ...server.HandlerOption) error
- func RegisterHealthyHandler(s server.Server, hdlr HealthyHandler, opts ...server.HandlerOption) error
- func RegisterTrackerHandler(s server.Server, hdlr TrackerHandler, opts ...server.HandlerOption) error
- type Agent
- func (*Agent) Descriptor() ([]byte, []int)deprecated
- func (x *Agent) GetDeviceModel() string
- func (x *Agent) GetDeviceType() string
- func (x *Agent) GetProfile() string
- func (x *Agent) GetSerialNumber() string
- func (x *Agent) GetSoftwareFamily() string
- func (x *Agent) GetSoftwareVersion() string
- func (x *Agent) GetSystemFamily() string
- func (x *Agent) GetSystemVersion() string
- func (*Agent) ProtoMessage()
- func (x *Agent) ProtoReflect() protoreflect.Message
- func (x *Agent) Reset()
- func (x *Agent) String() string
- type BlankResponse
- type EchoRequest
- type EchoResponse
- type GeneratorAgentRequest
- func (*GeneratorAgentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratorAgentRequest) GetCount() int64
- func (x *GeneratorAgentRequest) GetOffset() int64
- func (*GeneratorAgentRequest) ProtoMessage()
- func (x *GeneratorAgentRequest) ProtoReflect() protoreflect.Message
- func (x *GeneratorAgentRequest) Reset()
- func (x *GeneratorAgentRequest) String() string
- type GeneratorAgentResponse
- func (*GeneratorAgentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratorAgentResponse) GetAgent() []*Agent
- func (x *GeneratorAgentResponse) GetStatus() *Status
- func (x *GeneratorAgentResponse) GetTotal() int64
- func (*GeneratorAgentResponse) ProtoMessage()
- func (x *GeneratorAgentResponse) ProtoReflect() protoreflect.Message
- func (x *GeneratorAgentResponse) Reset()
- func (x *GeneratorAgentResponse) String() string
- type GeneratorHandler
- type GeneratorRecordRequest
- func (*GeneratorRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratorRecordRequest) GetAppID() string
- func (x *GeneratorRecordRequest) GetCount() int64
- func (x *GeneratorRecordRequest) GetDeviceID() string
- func (x *GeneratorRecordRequest) GetEndTime() int64
- func (x *GeneratorRecordRequest) GetEventID() string
- func (x *GeneratorRecordRequest) GetEventParameter() string
- func (x *GeneratorRecordRequest) GetOffset() int64
- func (x *GeneratorRecordRequest) GetStartTime() int64
- func (x *GeneratorRecordRequest) GetTemplate() string
- func (x *GeneratorRecordRequest) GetUserID() string
- func (*GeneratorRecordRequest) ProtoMessage()
- func (x *GeneratorRecordRequest) ProtoReflect() protoreflect.Message
- func (x *GeneratorRecordRequest) Reset()
- func (x *GeneratorRecordRequest) String() string
- type GeneratorRecordResponse
- func (*GeneratorRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GeneratorRecordResponse) GetContent() string
- func (x *GeneratorRecordResponse) GetStatus() *Status
- func (*GeneratorRecordResponse) ProtoMessage()
- func (x *GeneratorRecordResponse) ProtoReflect() protoreflect.Message
- func (x *GeneratorRecordResponse) Reset()
- func (x *GeneratorRecordResponse) String() string
- type GeneratorService
- type HealthyHandler
- type HealthyService
- type Status
- type TrackerHandler
- type TrackerRecordRequest
- func (*TrackerRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrackerRecordRequest) GetAppID() string
- func (x *TrackerRecordRequest) GetDeviceID() string
- func (x *TrackerRecordRequest) GetEventID() string
- func (x *TrackerRecordRequest) GetParameter() string
- func (x *TrackerRecordRequest) GetUserID() string
- func (*TrackerRecordRequest) ProtoMessage()
- func (x *TrackerRecordRequest) ProtoReflect() protoreflect.Message
- func (x *TrackerRecordRequest) Reset()
- func (x *TrackerRecordRequest) String() string
- type TrackerService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_analytics_generator_proto protoreflect.FileDescriptor
View Source
var File_proto_analytics_healthy_proto protoreflect.FileDescriptor
View Source
var File_proto_analytics_tracker_proto protoreflect.FileDescriptor
Functions ¶
func NewGeneratorEndpoints ¶
func NewHealthyEndpoints ¶
func NewTrackerEndpoints ¶
func RegisterGeneratorHandler ¶
func RegisterGeneratorHandler(s server.Server, hdlr GeneratorHandler, opts ...server.HandlerOption) error
func RegisterHealthyHandler ¶ added in v1.4.0
func RegisterHealthyHandler(s server.Server, hdlr HealthyHandler, opts ...server.HandlerOption) error
func RegisterTrackerHandler ¶
func RegisterTrackerHandler(s server.Server, hdlr TrackerHandler, 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"` // 设备类型 Profile string `protobuf:"bytes,8,opt,name=profile,proto3" json:"profile,omitempty"` // 简要资料 // contains filtered or unexported fields }
个体
func (*Agent) Descriptor
deprecated
func (*Agent) GetDeviceModel ¶
func (*Agent) GetDeviceType ¶
func (*Agent) GetProfile ¶ added in v1.2.1
func (*Agent) GetSerialNumber ¶
func (*Agent) GetSoftwareFamily ¶
func (*Agent) GetSoftwareVersion ¶
func (*Agent) GetSystemFamily ¶
func (*Agent) GetSystemVersion ¶
func (*Agent) ProtoMessage ¶
func (*Agent) ProtoMessage()
func (*Agent) ProtoReflect ¶
func (x *Agent) ProtoReflect() protoreflect.Message
type BlankResponse ¶
type BlankResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 // contains filtered or unexported fields }
空白回复
func (*BlankResponse) Descriptor
deprecated
func (*BlankResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlankResponse.ProtoReflect.Descriptor instead.
func (*BlankResponse) GetStatus ¶
func (x *BlankResponse) GetStatus() *Status
func (*BlankResponse) ProtoMessage ¶
func (*BlankResponse) ProtoMessage()
func (*BlankResponse) ProtoReflect ¶
func (x *BlankResponse) ProtoReflect() protoreflect.Message
func (*BlankResponse) Reset ¶
func (x *BlankResponse) Reset()
func (*BlankResponse) String ¶
func (x *BlankResponse) String() string
type EchoRequest ¶ added in v1.4.0
type EchoRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
回显的请求
func (*EchoRequest) Descriptor
deprecated
added in
v1.4.0
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) GetMsg ¶ added in v1.4.0
func (x *EchoRequest) GetMsg() string
func (*EchoRequest) ProtoMessage ¶ added in v1.4.0
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) Reset ¶ added in v1.4.0
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶ added in v1.4.0
func (x *EchoRequest) String() string
type EchoResponse ¶ added in v1.4.0
type EchoResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
回显的回复
func (*EchoResponse) Descriptor
deprecated
added in
v1.4.0
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetMsg ¶ added in v1.4.0
func (x *EchoResponse) GetMsg() string
func (*EchoResponse) ProtoMessage ¶ added in v1.4.0
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) Reset ¶ added in v1.4.0
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶ added in v1.4.0
func (x *EchoResponse) String() string
type GeneratorAgentRequest ¶
type GeneratorAgentRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移量 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 // contains filtered or unexported fields }
生成个体报表的请求
func (*GeneratorAgentRequest) Descriptor
deprecated
func (*GeneratorAgentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneratorAgentRequest.ProtoReflect.Descriptor instead.
func (*GeneratorAgentRequest) GetCount ¶
func (x *GeneratorAgentRequest) GetCount() int64
func (*GeneratorAgentRequest) GetOffset ¶
func (x *GeneratorAgentRequest) GetOffset() int64
func (*GeneratorAgentRequest) ProtoMessage ¶
func (*GeneratorAgentRequest) ProtoMessage()
func (*GeneratorAgentRequest) ProtoReflect ¶
func (x *GeneratorAgentRequest) ProtoReflect() protoreflect.Message
func (*GeneratorAgentRequest) Reset ¶
func (x *GeneratorAgentRequest) Reset()
func (*GeneratorAgentRequest) String ¶
func (x *GeneratorAgentRequest) String() string
type GeneratorAgentResponse ¶
type GeneratorAgentResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // 总数 Agent []*Agent `protobuf:"bytes,3,rep,name=agent,proto3" json:"agent,omitempty"` // 个体列表 // contains filtered or unexported fields }
生成个体报表的回复
func (*GeneratorAgentResponse) Descriptor
deprecated
func (*GeneratorAgentResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneratorAgentResponse.ProtoReflect.Descriptor instead.
func (*GeneratorAgentResponse) GetAgent ¶
func (x *GeneratorAgentResponse) GetAgent() []*Agent
func (*GeneratorAgentResponse) GetStatus ¶
func (x *GeneratorAgentResponse) GetStatus() *Status
func (*GeneratorAgentResponse) GetTotal ¶
func (x *GeneratorAgentResponse) GetTotal() int64
func (*GeneratorAgentResponse) ProtoMessage ¶
func (*GeneratorAgentResponse) ProtoMessage()
func (*GeneratorAgentResponse) ProtoReflect ¶
func (x *GeneratorAgentResponse) ProtoReflect() protoreflect.Message
func (*GeneratorAgentResponse) Reset ¶
func (x *GeneratorAgentResponse) Reset()
func (*GeneratorAgentResponse) String ¶
func (x *GeneratorAgentResponse) String() string
type GeneratorHandler ¶
type GeneratorHandler interface { // 个体 Agent(context.Context, *GeneratorAgentRequest, *GeneratorAgentResponse) error // 记录 Record(context.Context, *GeneratorRecordRequest, *GeneratorRecordResponse) error }
type GeneratorRecordRequest ¶
type GeneratorRecordRequest struct { Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 偏移量 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 数量 StartTime int64 `protobuf:"varint,3,opt,name=startTime,proto3" json:"startTime,omitempty"` // 开始时间 EndTime int64 `protobuf:"varint,4,opt,name=endTime,proto3" json:"endTime,omitempty"` // 结束时间 AppID string `protobuf:"bytes,5,opt,name=appID,proto3" json:"appID,omitempty"` // 应用ID DeviceID string `protobuf:"bytes,6,opt,name=deviceID,proto3" json:"deviceID,omitempty"` // 设备ID UserID string `protobuf:"bytes,7,opt,name=userID,proto3" json:"userID,omitempty"` // 用户ID EventID string `protobuf:"bytes,8,opt,name=eventID,proto3" json:"eventID,omitempty"` // 事件ID EventParameter string `protobuf:"bytes,9,opt,name=eventParameter,proto3" json:"eventParameter,omitempty"` // 事件参数 Template string `protobuf:"bytes,11,opt,name=template,proto3" json:"template,omitempty"` // 报表模板 // contains filtered or unexported fields }
生成记录报表的请求
func (*GeneratorRecordRequest) Descriptor
deprecated
func (*GeneratorRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use GeneratorRecordRequest.ProtoReflect.Descriptor instead.
func (*GeneratorRecordRequest) GetAppID ¶
func (x *GeneratorRecordRequest) GetAppID() string
func (*GeneratorRecordRequest) GetCount ¶
func (x *GeneratorRecordRequest) GetCount() int64
func (*GeneratorRecordRequest) GetDeviceID ¶
func (x *GeneratorRecordRequest) GetDeviceID() string
func (*GeneratorRecordRequest) GetEndTime ¶
func (x *GeneratorRecordRequest) GetEndTime() int64
func (*GeneratorRecordRequest) GetEventID ¶
func (x *GeneratorRecordRequest) GetEventID() string
func (*GeneratorRecordRequest) GetEventParameter ¶
func (x *GeneratorRecordRequest) GetEventParameter() string
func (*GeneratorRecordRequest) GetOffset ¶
func (x *GeneratorRecordRequest) GetOffset() int64
func (*GeneratorRecordRequest) GetStartTime ¶
func (x *GeneratorRecordRequest) GetStartTime() int64
func (*GeneratorRecordRequest) GetTemplate ¶
func (x *GeneratorRecordRequest) GetTemplate() string
func (*GeneratorRecordRequest) GetUserID ¶
func (x *GeneratorRecordRequest) GetUserID() string
func (*GeneratorRecordRequest) ProtoMessage ¶
func (*GeneratorRecordRequest) ProtoMessage()
func (*GeneratorRecordRequest) ProtoReflect ¶
func (x *GeneratorRecordRequest) ProtoReflect() protoreflect.Message
func (*GeneratorRecordRequest) Reset ¶
func (x *GeneratorRecordRequest) Reset()
func (*GeneratorRecordRequest) String ¶
func (x *GeneratorRecordRequest) String() string
type GeneratorRecordResponse ¶
type GeneratorRecordResponse struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // 状态 Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 报表内容 // contains filtered or unexported fields }
生成记录报表的回复
func (*GeneratorRecordResponse) Descriptor
deprecated
func (*GeneratorRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use GeneratorRecordResponse.ProtoReflect.Descriptor instead.
func (*GeneratorRecordResponse) GetContent ¶
func (x *GeneratorRecordResponse) GetContent() string
func (*GeneratorRecordResponse) GetStatus ¶
func (x *GeneratorRecordResponse) GetStatus() *Status
func (*GeneratorRecordResponse) ProtoMessage ¶
func (*GeneratorRecordResponse) ProtoMessage()
func (*GeneratorRecordResponse) ProtoReflect ¶
func (x *GeneratorRecordResponse) ProtoReflect() protoreflect.Message
func (*GeneratorRecordResponse) Reset ¶
func (x *GeneratorRecordResponse) Reset()
func (*GeneratorRecordResponse) String ¶
func (x *GeneratorRecordResponse) String() string
type GeneratorService ¶
type GeneratorService interface { // 个体 Agent(ctx context.Context, in *GeneratorAgentRequest, opts ...client.CallOption) (*GeneratorAgentResponse, error) // 记录 Record(ctx context.Context, in *GeneratorRecordRequest, opts ...client.CallOption) (*GeneratorRecordResponse, error) }
func NewGeneratorService ¶
func NewGeneratorService(name string, c client.Client) GeneratorService
type HealthyHandler ¶ added in v1.4.0
type HealthyHandler interface { // 回显 Echo(context.Context, *EchoRequest, *EchoResponse) error }
type HealthyService ¶ added in v1.4.0
type HealthyService interface { // 回显 Echo(ctx context.Context, in *EchoRequest, opts ...client.CallOption) (*EchoResponse, error) }
func NewHealthyService ¶ added in v1.4.0
func NewHealthyService(name string, c client.Client) HealthyService
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"` // 状态信息 // contains filtered or unexported fields }
状态
func (*Status) Descriptor
deprecated
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type TrackerHandler ¶
type TrackerHandler interface { // 活跃 Wake(context.Context, *Agent, *BlankResponse) error // 记录 Record(context.Context, *TrackerRecordRequest, *BlankResponse) error }
type TrackerRecordRequest ¶
type TrackerRecordRequest struct { AppID string `protobuf:"bytes,1,opt,name=appID,proto3" json:"appID,omitempty"` // 应用ID DeviceID string `protobuf:"bytes,2,opt,name=deviceID,proto3" json:"deviceID,omitempty"` // 设备ID UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` // 用户ID EventID string `protobuf:"bytes,4,opt,name=eventID,proto3" json:"eventID,omitempty"` // 事件ID Parameter string `protobuf:"bytes,5,opt,name=parameter,proto3" json:"parameter,omitempty"` // 参数 // contains filtered or unexported fields }
跟踪记录的请求
func (*TrackerRecordRequest) Descriptor
deprecated
func (*TrackerRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrackerRecordRequest.ProtoReflect.Descriptor instead.
func (*TrackerRecordRequest) GetAppID ¶
func (x *TrackerRecordRequest) GetAppID() string
func (*TrackerRecordRequest) GetDeviceID ¶
func (x *TrackerRecordRequest) GetDeviceID() string
func (*TrackerRecordRequest) GetEventID ¶
func (x *TrackerRecordRequest) GetEventID() string
func (*TrackerRecordRequest) GetParameter ¶
func (x *TrackerRecordRequest) GetParameter() string
func (*TrackerRecordRequest) GetUserID ¶
func (x *TrackerRecordRequest) GetUserID() string
func (*TrackerRecordRequest) ProtoMessage ¶
func (*TrackerRecordRequest) ProtoMessage()
func (*TrackerRecordRequest) ProtoReflect ¶
func (x *TrackerRecordRequest) ProtoReflect() protoreflect.Message
func (*TrackerRecordRequest) Reset ¶
func (x *TrackerRecordRequest) Reset()
func (*TrackerRecordRequest) String ¶
func (x *TrackerRecordRequest) String() string
type TrackerService ¶
type TrackerService interface { // 活跃 Wake(ctx context.Context, in *Agent, opts ...client.CallOption) (*BlankResponse, error) // 记录 Record(ctx context.Context, in *TrackerRecordRequest, opts ...client.CallOption) (*BlankResponse, error) }
func NewTrackerService ¶
func NewTrackerService(name string, c client.Client) TrackerService
Click to show internal directories.
Click to hide internal directories.