Documentation
¶
Index ¶
- Variables
- func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EventLog
- func (*EventLog) Descriptor() ([]byte, []int)
- func (m *EventLog) GetActionType() string
- func (m *EventLog) GetAndroidId() string
- func (m *EventLog) GetAppChannel() string
- func (m *EventLog) GetAppType() string
- func (m *EventLog) GetAppVersion() string
- func (m *EventLog) GetCarrier() EventLog_Carrier
- func (m *EventLog) GetDeviceBrand() string
- func (m *EventLog) GetDeviceModel() string
- func (m *EventLog) GetDeviceVendor() string
- func (m *EventLog) GetDuration() int64
- func (m *EventLog) GetEnv() string
- func (m *EventLog) GetEvent() string
- func (m *EventLog) GetEventId() string
- func (m *EventLog) GetEventTime() int64
- func (m *EventLog) GetExtendInfo() map[string]string
- func (m *EventLog) GetIdfa() string
- func (m *EventLog) GetImei() string
- func (m *EventLog) GetIp() string
- func (m *EventLog) GetIpCity() string
- func (m *EventLog) GetIpCountry() string
- func (m *EventLog) GetIpProvince() string
- func (m *EventLog) GetLat() string
- func (m *EventLog) GetLayoutId() string
- func (m *EventLog) GetLoggedTime() int64
- func (m *EventLog) GetLon() string
- func (m *EventLog) GetMac() string
- func (m *EventLog) GetMid() string
- func (m *EventLog) GetModuleId() string
- func (m *EventLog) GetNetwork() EventLog_Network
- func (m *EventLog) GetOaid() string
- func (m *EventLog) GetOs() string
- func (m *EventLog) GetOsVersion() string
- func (m *EventLog) GetPageId() string
- func (m *EventLog) GetPageKey() string
- func (m *EventLog) GetPlatform() string
- func (m *EventLog) GetPvId() string
- func (m *EventLog) GetRefLayoutId() string
- func (m *EventLog) GetRefModuleId() string
- func (m *EventLog) GetRefPageId() string
- func (m *EventLog) GetRefPageKey() string
- func (m *EventLog) GetRefPvId() string
- func (m *EventLog) GetReferer() string
- func (m *EventLog) GetScreenHeight() int32
- func (m *EventLog) GetScreenResolution() string
- func (m *EventLog) GetScreenSize() string
- func (m *EventLog) GetScreenWidth() int32
- func (m *EventLog) GetSessionId() string
- func (m *EventLog) GetTkid() string
- func (m *EventLog) GetUdid() string
- func (m *EventLog) GetUserAgent() string
- func (m *EventLog) Marshal() (dAtA []byte, err error)
- func (m *EventLog) MarshalTo(dAtA []byte) (int, error)
- func (*EventLog) ProtoMessage()
- func (m *EventLog) Reset()
- func (m *EventLog) Size() (n int)
- func (m *EventLog) String() string
- func (m *EventLog) Unmarshal(dAtA []byte) error
- func (m *EventLog) XXX_DiscardUnknown()
- func (m *EventLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLog) XXX_Merge(src proto.Message)
- func (m *EventLog) XXX_Size() int
- func (m *EventLog) XXX_Unmarshal(b []byte) error
- type EventLogCommon
- func (*EventLogCommon) Descriptor() ([]byte, []int)
- func (m *EventLogCommon) GetAndroidId() string
- func (m *EventLogCommon) GetAppChannel() string
- func (m *EventLogCommon) GetAppType() string
- func (m *EventLogCommon) GetAppVersion() string
- func (m *EventLogCommon) GetCarrier() EventLog_Carrier
- func (m *EventLogCommon) GetDeviceBrand() string
- func (m *EventLogCommon) GetDeviceModel() string
- func (m *EventLogCommon) GetDeviceVendor() string
- func (m *EventLogCommon) GetEnv() string
- func (m *EventLogCommon) GetIdfa() string
- func (m *EventLogCommon) GetImei() string
- func (m *EventLogCommon) GetLat() string
- func (m *EventLogCommon) GetLon() string
- func (m *EventLogCommon) GetMac() string
- func (m *EventLogCommon) GetMid() string
- func (m *EventLogCommon) GetNetwork() EventLog_Network
- func (m *EventLogCommon) GetOaid() string
- func (m *EventLogCommon) GetOs() string
- func (m *EventLogCommon) GetOsVersion() string
- func (m *EventLogCommon) GetPlatform() string
- func (m *EventLogCommon) GetScreenHeight() int32
- func (m *EventLogCommon) GetScreenResolution() string
- func (m *EventLogCommon) GetScreenSize() string
- func (m *EventLogCommon) GetScreenWidth() int32
- func (m *EventLogCommon) GetTkid() string
- func (m *EventLogCommon) GetUdid() string
- func (m *EventLogCommon) Marshal() (dAtA []byte, err error)
- func (m *EventLogCommon) MarshalTo(dAtA []byte) (int, error)
- func (*EventLogCommon) ProtoMessage()
- func (m *EventLogCommon) Reset()
- func (m *EventLogCommon) Size() (n int)
- func (m *EventLogCommon) String() string
- func (m *EventLogCommon) Unmarshal(dAtA []byte) error
- func (m *EventLogCommon) XXX_DiscardUnknown()
- func (m *EventLogCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLogCommon) XXX_Merge(src proto.Message)
- func (m *EventLogCommon) XXX_Size() int
- func (m *EventLogCommon) XXX_Unmarshal(b []byte) error
- type EventLog_Carrier
- type EventLog_Network
- type EventLogs
- func (*EventLogs) Descriptor() ([]byte, []int)
- func (m *EventLogs) GetCommon() *EventLogCommon
- func (m *EventLogs) GetEvents() []*EventLog
- func (m *EventLogs) Marshal() (dAtA []byte, err error)
- func (m *EventLogs) MarshalTo(dAtA []byte) (int, error)
- func (*EventLogs) ProtoMessage()
- func (m *EventLogs) Reset()
- func (m *EventLogs) Size() (n int)
- func (m *EventLogs) String() string
- func (m *EventLogs) Unmarshal(dAtA []byte) error
- func (m *EventLogs) XXX_DiscardUnknown()
- func (m *EventLogs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventLogs) XXX_Merge(src proto.Message)
- func (m *EventLogs) XXX_Size() int
- func (m *EventLogs) XXX_Unmarshal(b []byte) error
- type LogServiceClient
- type LogServiceServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetCode() int32
- func (m *Response) GetMsg() string
- func (m *Response) Marshal() (dAtA []byte, err error)
- func (m *Response) MarshalTo(dAtA []byte) (int, error)
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) Size() (n int)
- func (m *Response) String() string
- func (m *Response) Unmarshal(dAtA []byte) error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type UnimplementedLogServiceServer
- func (*UnimplementedLogServiceServer) Ping(ctx context.Context, req *Empty) (*Response, error)
- func (*UnimplementedLogServiceServer) SubmitMultiple(ctx context.Context, req *EventLogs) (*Response, error)
- func (*UnimplementedLogServiceServer) SubmitSingle(ctx context.Context, req *EventLog) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthEventLog = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEventLog = fmt.Errorf("proto: integer overflow") )
View Source
var EventLog_Carrier_name = map[int32]string{
0: "CARRIER_UNKNOWN",
1: "CARRIER_CM",
2: "CARRIER_CU",
3: "CARRIER_CT",
}
View Source
var EventLog_Carrier_value = map[string]int32{
"CARRIER_UNKNOWN": 0,
"CARRIER_CM": 1,
"CARRIER_CU": 2,
"CARRIER_CT": 3,
}
View Source
var EventLog_Network_name = map[int32]string{
0: "NETWORK_UNKNOWN",
1: "NETWORK_WIFI",
2: "NETWORK_2G",
3: "NETWORK_3G",
4: "NETWORK_4G",
5: "NETWORK_5G",
}
View Source
var EventLog_Network_value = map[string]int32{
"NETWORK_UNKNOWN": 0,
"NETWORK_WIFI": 1,
"NETWORK_2G": 2,
"NETWORK_3G": 3,
"NETWORK_4G": 4,
"NETWORK_5G": 5,
}
Functions ¶
func RegisterLogServiceServer ¶
func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
Types ¶
type Empty ¶
type Empty struct {
}
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type EventLog ¶
type EventLog struct {
// base info
EventId string `protobuf:"bytes,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
EventTime int64 `protobuf:"varint,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
LoggedTime int64 `protobuf:"varint,3,opt,name=logged_time,json=loggedTime,proto3" json:"logged_time,omitempty"`
SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Udid string `protobuf:"bytes,5,opt,name=udid,proto3" json:"udid,omitempty"`
Tkid string `protobuf:"bytes,6,opt,name=tkid,proto3" json:"tkid,omitempty"`
Mid string `protobuf:"bytes,7,opt,name=mid,proto3" json:"mid,omitempty"`
Platform string `protobuf:"bytes,8,opt,name=platform,proto3" json:"platform,omitempty"`
AppVersion string `protobuf:"bytes,9,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
AppChannel string `protobuf:"bytes,10,opt,name=app_channel,json=appChannel,proto3" json:"app_channel,omitempty"`
AppType string `protobuf:"bytes,11,opt,name=app_type,json=appType,proto3" json:"app_type,omitempty"`
UserAgent string `protobuf:"bytes,12,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
Event string `protobuf:"bytes,13,opt,name=event,proto3" json:"event,omitempty"`
Env string `protobuf:"bytes,14,opt,name=env,proto3" json:"env,omitempty"`
// device info
Os string `protobuf:"bytes,20,opt,name=os,proto3" json:"os,omitempty"`
OsVersion string `protobuf:"bytes,21,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
DeviceModel string `protobuf:"bytes,22,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"`
DeviceVendor string `protobuf:"bytes,23,opt,name=device_vendor,json=deviceVendor,proto3" json:"device_vendor,omitempty"`
DeviceBrand string `protobuf:"bytes,24,opt,name=device_brand,json=deviceBrand,proto3" json:"device_brand,omitempty"`
ScreenSize string `protobuf:"bytes,25,opt,name=screen_size,json=screenSize,proto3" json:"screen_size,omitempty"`
ScreenWidth int32 `protobuf:"varint,26,opt,name=screen_width,json=screenWidth,proto3" json:"screen_width,omitempty"`
ScreenHeight int32 `protobuf:"varint,27,opt,name=screen_height,json=screenHeight,proto3" json:"screen_height,omitempty"`
ScreenResolution string `protobuf:"bytes,28,opt,name=screen_resolution,json=screenResolution,proto3" json:"screen_resolution,omitempty"`
Imei string `protobuf:"bytes,29,opt,name=imei,proto3" json:"imei,omitempty"`
AndroidId string `protobuf:"bytes,30,opt,name=android_id,json=androidId,proto3" json:"android_id,omitempty"`
Idfa string `protobuf:"bytes,31,opt,name=idfa,proto3" json:"idfa,omitempty"`
Oaid string `protobuf:"bytes,32,opt,name=oaid,proto3" json:"oaid,omitempty"`
Carrier EventLog_Carrier `protobuf:"varint,40,opt,name=carrier,proto3,enum=EventLog_Carrier" json:"carrier,omitempty"`
Network EventLog_Network `protobuf:"varint,41,opt,name=network,proto3,enum=EventLog_Network" json:"network,omitempty"`
Ip string `protobuf:"bytes,42,opt,name=ip,proto3" json:"ip,omitempty"`
IpCountry string `protobuf:"bytes,43,opt,name=ip_country,json=ipCountry,proto3" json:"ip_country,omitempty"`
IpProvince string `protobuf:"bytes,44,opt,name=ip_province,json=ipProvince,proto3" json:"ip_province,omitempty"`
IpCity string `protobuf:"bytes,45,opt,name=ip_city,json=ipCity,proto3" json:"ip_city,omitempty"`
Lon string `protobuf:"bytes,46,opt,name=lon,proto3" json:"lon,omitempty"`
Lat string `protobuf:"bytes,47,opt,name=lat,proto3" json:"lat,omitempty"`
Mac string `protobuf:"bytes,48,opt,name=mac,proto3" json:"mac,omitempty"`
// event info
PageId string `protobuf:"bytes,80,opt,name=page_id,json=pageId,proto3" json:"page_id,omitempty"`
PvId string `protobuf:"bytes,81,opt,name=pv_id,json=pvId,proto3" json:"pv_id,omitempty"`
LayoutId string `protobuf:"bytes,82,opt,name=layout_id,json=layoutId,proto3" json:"layout_id,omitempty"`
PageKey string `protobuf:"bytes,83,opt,name=page_key,json=pageKey,proto3" json:"page_key,omitempty"`
ModuleId string `protobuf:"bytes,84,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"`
ActionType string `protobuf:"bytes,85,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"`
// ref event info
RefPageId string `protobuf:"bytes,90,opt,name=ref_page_id,json=refPageId,proto3" json:"ref_page_id,omitempty"`
RefPvId string `protobuf:"bytes,91,opt,name=ref_pv_id,json=refPvId,proto3" json:"ref_pv_id,omitempty"`
RefLayoutId string `protobuf:"bytes,92,opt,name=ref_layout_id,json=refLayoutId,proto3" json:"ref_layout_id,omitempty"`
RefPageKey string `protobuf:"bytes,93,opt,name=ref_page_key,json=refPageKey,proto3" json:"ref_page_key,omitempty"`
RefModuleId string `protobuf:"bytes,94,opt,name=ref_module_id,json=refModuleId,proto3" json:"ref_module_id,omitempty"`
Referer string `protobuf:"bytes,99,opt,name=referer,proto3" json:"referer,omitempty"`
// event data
Duration int64 `protobuf:"varint,100,opt,name=duration,proto3" json:"duration,omitempty"`
ExtendInfo map[string]string `` /* 181-byte string literal not displayed */
}
func (*EventLog) Descriptor ¶
func (*EventLog) GetActionType ¶
func (*EventLog) GetAndroidId ¶
func (*EventLog) GetAppChannel ¶
func (*EventLog) GetAppType ¶
func (*EventLog) GetAppVersion ¶
func (*EventLog) GetCarrier ¶
func (m *EventLog) GetCarrier() EventLog_Carrier
func (*EventLog) GetDeviceBrand ¶
func (*EventLog) GetDeviceModel ¶
func (*EventLog) GetDeviceVendor ¶
func (*EventLog) GetDuration ¶
func (*EventLog) GetEventId ¶
func (*EventLog) GetEventTime ¶
func (*EventLog) GetExtendInfo ¶
func (*EventLog) GetIpCountry ¶
func (*EventLog) GetIpProvince ¶
func (*EventLog) GetLayoutId ¶
func (*EventLog) GetLoggedTime ¶
func (*EventLog) GetModuleId ¶
func (*EventLog) GetNetwork ¶
func (m *EventLog) GetNetwork() EventLog_Network
func (*EventLog) GetOsVersion ¶
func (*EventLog) GetPageKey ¶
func (*EventLog) GetPlatform ¶
func (*EventLog) GetRefLayoutId ¶
func (*EventLog) GetRefModuleId ¶
func (*EventLog) GetRefPageId ¶
func (*EventLog) GetRefPageKey ¶
func (*EventLog) GetRefPvId ¶
func (*EventLog) GetReferer ¶
func (*EventLog) GetScreenHeight ¶
func (*EventLog) GetScreenResolution ¶
func (*EventLog) GetScreenSize ¶
func (*EventLog) GetScreenWidth ¶
func (*EventLog) GetSessionId ¶
func (*EventLog) GetUserAgent ¶
func (*EventLog) ProtoMessage ¶
func (*EventLog) ProtoMessage()
func (*EventLog) XXX_DiscardUnknown ¶
func (m *EventLog) XXX_DiscardUnknown()
func (*EventLog) XXX_Marshal ¶
func (*EventLog) XXX_Unmarshal ¶
type EventLogCommon ¶
type EventLogCommon struct {
Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"`
Tkid string `protobuf:"bytes,2,opt,name=tkid,proto3" json:"tkid,omitempty"`
Mid string `protobuf:"bytes,3,opt,name=mid,proto3" json:"mid,omitempty"`
Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"`
AppVersion string `protobuf:"bytes,5,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
AppChannel string `protobuf:"bytes,6,opt,name=app_channel,json=appChannel,proto3" json:"app_channel,omitempty"`
AppType string `protobuf:"bytes,7,opt,name=app_type,json=appType,proto3" json:"app_type,omitempty"`
Env string `protobuf:"bytes,8,opt,name=env,proto3" json:"env,omitempty"`
Os string `protobuf:"bytes,10,opt,name=os,proto3" json:"os,omitempty"`
OsVersion string `protobuf:"bytes,11,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
DeviceModel string `protobuf:"bytes,12,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"`
DeviceVendor string `protobuf:"bytes,13,opt,name=device_vendor,json=deviceVendor,proto3" json:"device_vendor,omitempty"`
DeviceBrand string `protobuf:"bytes,14,opt,name=device_brand,json=deviceBrand,proto3" json:"device_brand,omitempty"`
ScreenSize string `protobuf:"bytes,15,opt,name=screen_size,json=screenSize,proto3" json:"screen_size,omitempty"`
ScreenWidth int32 `protobuf:"varint,16,opt,name=screen_width,json=screenWidth,proto3" json:"screen_width,omitempty"`
ScreenHeight int32 `protobuf:"varint,17,opt,name=screen_height,json=screenHeight,proto3" json:"screen_height,omitempty"`
ScreenResolution string `protobuf:"bytes,18,opt,name=screen_resolution,json=screenResolution,proto3" json:"screen_resolution,omitempty"`
Imei string `protobuf:"bytes,19,opt,name=imei,proto3" json:"imei,omitempty"`
AndroidId string `protobuf:"bytes,20,opt,name=android_id,json=androidId,proto3" json:"android_id,omitempty"`
Idfa string `protobuf:"bytes,21,opt,name=idfa,proto3" json:"idfa,omitempty"`
Oaid string `protobuf:"bytes,22,opt,name=oaid,proto3" json:"oaid,omitempty"`
Carrier EventLog_Carrier `protobuf:"varint,30,opt,name=carrier,proto3,enum=EventLog_Carrier" json:"carrier,omitempty"`
Network EventLog_Network `protobuf:"varint,31,opt,name=network,proto3,enum=EventLog_Network" json:"network,omitempty"`
Lon string `protobuf:"bytes,32,opt,name=lon,proto3" json:"lon,omitempty"`
Lat string `protobuf:"bytes,33,opt,name=lat,proto3" json:"lat,omitempty"`
Mac string `protobuf:"bytes,34,opt,name=mac,proto3" json:"mac,omitempty"`
}
事件通用属性
func (*EventLogCommon) Descriptor ¶
func (*EventLogCommon) Descriptor() ([]byte, []int)
func (*EventLogCommon) GetAndroidId ¶
func (m *EventLogCommon) GetAndroidId() string
func (*EventLogCommon) GetAppChannel ¶
func (m *EventLogCommon) GetAppChannel() string
func (*EventLogCommon) GetAppType ¶
func (m *EventLogCommon) GetAppType() string
func (*EventLogCommon) GetAppVersion ¶
func (m *EventLogCommon) GetAppVersion() string
func (*EventLogCommon) GetCarrier ¶
func (m *EventLogCommon) GetCarrier() EventLog_Carrier
func (*EventLogCommon) GetDeviceBrand ¶
func (m *EventLogCommon) GetDeviceBrand() string
func (*EventLogCommon) GetDeviceModel ¶
func (m *EventLogCommon) GetDeviceModel() string
func (*EventLogCommon) GetDeviceVendor ¶
func (m *EventLogCommon) GetDeviceVendor() string
func (*EventLogCommon) GetEnv ¶
func (m *EventLogCommon) GetEnv() string
func (*EventLogCommon) GetIdfa ¶
func (m *EventLogCommon) GetIdfa() string
func (*EventLogCommon) GetImei ¶
func (m *EventLogCommon) GetImei() string
func (*EventLogCommon) GetLat ¶
func (m *EventLogCommon) GetLat() string
func (*EventLogCommon) GetLon ¶
func (m *EventLogCommon) GetLon() string
func (*EventLogCommon) GetMac ¶
func (m *EventLogCommon) GetMac() string
func (*EventLogCommon) GetMid ¶
func (m *EventLogCommon) GetMid() string
func (*EventLogCommon) GetNetwork ¶
func (m *EventLogCommon) GetNetwork() EventLog_Network
func (*EventLogCommon) GetOaid ¶
func (m *EventLogCommon) GetOaid() string
func (*EventLogCommon) GetOs ¶
func (m *EventLogCommon) GetOs() string
func (*EventLogCommon) GetOsVersion ¶
func (m *EventLogCommon) GetOsVersion() string
func (*EventLogCommon) GetPlatform ¶
func (m *EventLogCommon) GetPlatform() string
func (*EventLogCommon) GetScreenHeight ¶
func (m *EventLogCommon) GetScreenHeight() int32
func (*EventLogCommon) GetScreenResolution ¶
func (m *EventLogCommon) GetScreenResolution() string
func (*EventLogCommon) GetScreenSize ¶
func (m *EventLogCommon) GetScreenSize() string
func (*EventLogCommon) GetScreenWidth ¶
func (m *EventLogCommon) GetScreenWidth() int32
func (*EventLogCommon) GetTkid ¶
func (m *EventLogCommon) GetTkid() string
func (*EventLogCommon) GetUdid ¶
func (m *EventLogCommon) GetUdid() string
func (*EventLogCommon) Marshal ¶
func (m *EventLogCommon) Marshal() (dAtA []byte, err error)
func (*EventLogCommon) ProtoMessage ¶
func (*EventLogCommon) ProtoMessage()
func (*EventLogCommon) Reset ¶
func (m *EventLogCommon) Reset()
func (*EventLogCommon) Size ¶
func (m *EventLogCommon) Size() (n int)
func (*EventLogCommon) String ¶
func (m *EventLogCommon) String() string
func (*EventLogCommon) Unmarshal ¶
func (m *EventLogCommon) Unmarshal(dAtA []byte) error
func (*EventLogCommon) XXX_DiscardUnknown ¶
func (m *EventLogCommon) XXX_DiscardUnknown()
func (*EventLogCommon) XXX_Marshal ¶
func (m *EventLogCommon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventLogCommon) XXX_Merge ¶
func (m *EventLogCommon) XXX_Merge(src proto.Message)
func (*EventLogCommon) XXX_Size ¶
func (m *EventLogCommon) XXX_Size() int
func (*EventLogCommon) XXX_Unmarshal ¶
func (m *EventLogCommon) XXX_Unmarshal(b []byte) error
type EventLog_Carrier ¶
type EventLog_Carrier int32
network & ges info
const ( EventLog_CARRIER_UNKNOWN EventLog_Carrier = 0 EventLog_CARRIER_CM EventLog_Carrier = 1 EventLog_CARRIER_CU EventLog_Carrier = 2 EventLog_CARRIER_CT EventLog_Carrier = 3 )
func (EventLog_Carrier) EnumDescriptor ¶
func (EventLog_Carrier) EnumDescriptor() ([]byte, []int)
func (EventLog_Carrier) String ¶
func (x EventLog_Carrier) String() string
type EventLog_Network ¶
type EventLog_Network int32
const ( EventLog_NETWORK_UNKNOWN EventLog_Network = 0 EventLog_NETWORK_WIFI EventLog_Network = 1 EventLog_NETWORK_2G EventLog_Network = 2 EventLog_NETWORK_3G EventLog_Network = 3 EventLog_NETWORK_4G EventLog_Network = 4 EventLog_NETWORK_5G EventLog_Network = 5 )
func (EventLog_Network) EnumDescriptor ¶
func (EventLog_Network) EnumDescriptor() ([]byte, []int)
func (EventLog_Network) String ¶
func (x EventLog_Network) String() string
type EventLogs ¶
type EventLogs struct {
Common *EventLogCommon `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
Events []*EventLog `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
}
func (*EventLogs) Descriptor ¶
func (*EventLogs) GetCommon ¶
func (m *EventLogs) GetCommon() *EventLogCommon
func (*EventLogs) ProtoMessage ¶
func (*EventLogs) ProtoMessage()
func (*EventLogs) XXX_DiscardUnknown ¶
func (m *EventLogs) XXX_DiscardUnknown()
func (*EventLogs) XXX_Marshal ¶
func (*EventLogs) XXX_Unmarshal ¶
type LogServiceClient ¶
type LogServiceClient interface {
SubmitSingle(ctx context.Context, in *EventLog, opts ...grpc.CallOption) (*Response, error)
SubmitMultiple(ctx context.Context, in *EventLogs, opts ...grpc.CallOption) (*Response, error)
Ping(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
}
LogServiceClient is the client API for LogService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogServiceClient ¶
func NewLogServiceClient(cc *grpc.ClientConn) LogServiceClient
type LogServiceServer ¶
type LogServiceServer interface {
SubmitSingle(context.Context, *EventLog) (*Response, error)
SubmitMultiple(context.Context, *EventLogs) (*Response, error)
Ping(context.Context, *Empty) (*Response, error)
}
LogServiceServer is the server API for LogService service.
type Response ¶
type Response struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type UnimplementedLogServiceServer ¶
type UnimplementedLogServiceServer struct {
}
UnimplementedLogServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogServiceServer) SubmitMultiple ¶
func (*UnimplementedLogServiceServer) SubmitSingle ¶
Click to show internal directories.
Click to hide internal directories.