event_log

package
v0.0.0-...-7b65136 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (m *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

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

func (*Empty) XXX_Merge

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

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

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

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

func (*EventLog) GetActionType

func (m *EventLog) GetActionType() string

func (*EventLog) GetAndroidId

func (m *EventLog) GetAndroidId() string

func (*EventLog) GetAppChannel

func (m *EventLog) GetAppChannel() string

func (*EventLog) GetAppType

func (m *EventLog) GetAppType() string

func (*EventLog) GetAppVersion

func (m *EventLog) GetAppVersion() string

func (*EventLog) GetCarrier

func (m *EventLog) GetCarrier() EventLog_Carrier

func (*EventLog) GetDeviceBrand

func (m *EventLog) GetDeviceBrand() string

func (*EventLog) GetDeviceModel

func (m *EventLog) GetDeviceModel() string

func (*EventLog) GetDeviceVendor

func (m *EventLog) GetDeviceVendor() string

func (*EventLog) GetDuration

func (m *EventLog) GetDuration() int64

func (*EventLog) GetEnv

func (m *EventLog) GetEnv() string

func (*EventLog) GetEvent

func (m *EventLog) GetEvent() string

func (*EventLog) GetEventId

func (m *EventLog) GetEventId() string

func (*EventLog) GetEventTime

func (m *EventLog) GetEventTime() int64

func (*EventLog) GetExtendInfo

func (m *EventLog) GetExtendInfo() map[string]string

func (*EventLog) GetIdfa

func (m *EventLog) GetIdfa() string

func (*EventLog) GetImei

func (m *EventLog) GetImei() string

func (*EventLog) GetIp

func (m *EventLog) GetIp() string

func (*EventLog) GetIpCity

func (m *EventLog) GetIpCity() string

func (*EventLog) GetIpCountry

func (m *EventLog) GetIpCountry() string

func (*EventLog) GetIpProvince

func (m *EventLog) GetIpProvince() string

func (*EventLog) GetLat

func (m *EventLog) GetLat() string

func (*EventLog) GetLayoutId

func (m *EventLog) GetLayoutId() string

func (*EventLog) GetLoggedTime

func (m *EventLog) GetLoggedTime() int64

func (*EventLog) GetLon

func (m *EventLog) GetLon() string

func (*EventLog) GetMac

func (m *EventLog) GetMac() string

func (*EventLog) GetMid

func (m *EventLog) GetMid() string

func (*EventLog) GetModuleId

func (m *EventLog) GetModuleId() string

func (*EventLog) GetNetwork

func (m *EventLog) GetNetwork() EventLog_Network

func (*EventLog) GetOaid

func (m *EventLog) GetOaid() string

func (*EventLog) GetOs

func (m *EventLog) GetOs() string

func (*EventLog) GetOsVersion

func (m *EventLog) GetOsVersion() string

func (*EventLog) GetPageId

func (m *EventLog) GetPageId() string

func (*EventLog) GetPageKey

func (m *EventLog) GetPageKey() string

func (*EventLog) GetPlatform

func (m *EventLog) GetPlatform() string

func (*EventLog) GetPvId

func (m *EventLog) GetPvId() string

func (*EventLog) GetRefLayoutId

func (m *EventLog) GetRefLayoutId() string

func (*EventLog) GetRefModuleId

func (m *EventLog) GetRefModuleId() string

func (*EventLog) GetRefPageId

func (m *EventLog) GetRefPageId() string

func (*EventLog) GetRefPageKey

func (m *EventLog) GetRefPageKey() string

func (*EventLog) GetRefPvId

func (m *EventLog) GetRefPvId() string

func (*EventLog) GetReferer

func (m *EventLog) GetReferer() string

func (*EventLog) GetScreenHeight

func (m *EventLog) GetScreenHeight() int32

func (*EventLog) GetScreenResolution

func (m *EventLog) GetScreenResolution() string

func (*EventLog) GetScreenSize

func (m *EventLog) GetScreenSize() string

func (*EventLog) GetScreenWidth

func (m *EventLog) GetScreenWidth() int32

func (*EventLog) GetSessionId

func (m *EventLog) GetSessionId() string

func (*EventLog) GetTkid

func (m *EventLog) GetTkid() string

func (*EventLog) GetUdid

func (m *EventLog) GetUdid() string

func (*EventLog) GetUserAgent

func (m *EventLog) GetUserAgent() string

func (*EventLog) Marshal

func (m *EventLog) Marshal() (dAtA []byte, err error)

func (*EventLog) MarshalTo

func (m *EventLog) MarshalTo(dAtA []byte) (int, error)

func (*EventLog) ProtoMessage

func (*EventLog) ProtoMessage()

func (*EventLog) Reset

func (m *EventLog) Reset()

func (*EventLog) Size

func (m *EventLog) Size() (n int)

func (*EventLog) String

func (m *EventLog) String() string

func (*EventLog) Unmarshal

func (m *EventLog) Unmarshal(dAtA []byte) error

func (*EventLog) XXX_DiscardUnknown

func (m *EventLog) XXX_DiscardUnknown()

func (*EventLog) XXX_Marshal

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

func (*EventLog) XXX_Merge

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

func (*EventLog) XXX_Size

func (m *EventLog) XXX_Size() int

func (*EventLog) XXX_Unmarshal

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

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) MarshalTo

func (m *EventLogCommon) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*EventLogs) GetCommon

func (m *EventLogs) GetCommon() *EventLogCommon

func (*EventLogs) GetEvents

func (m *EventLogs) GetEvents() []*EventLog

func (*EventLogs) Marshal

func (m *EventLogs) Marshal() (dAtA []byte, err error)

func (*EventLogs) MarshalTo

func (m *EventLogs) MarshalTo(dAtA []byte) (int, error)

func (*EventLogs) ProtoMessage

func (*EventLogs) ProtoMessage()

func (*EventLogs) Reset

func (m *EventLogs) Reset()

func (*EventLogs) Size

func (m *EventLogs) Size() (n int)

func (*EventLogs) String

func (m *EventLogs) String() string

func (*EventLogs) Unmarshal

func (m *EventLogs) Unmarshal(dAtA []byte) error

func (*EventLogs) XXX_DiscardUnknown

func (m *EventLogs) XXX_DiscardUnknown()

func (*EventLogs) XXX_Marshal

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

func (*EventLogs) XXX_Merge

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

func (*EventLogs) XXX_Size

func (m *EventLogs) XXX_Size() int

func (*EventLogs) XXX_Unmarshal

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

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

func (*Response) GetCode

func (m *Response) GetCode() int32

func (*Response) GetMsg

func (m *Response) GetMsg() string

func (*Response) Marshal

func (m *Response) Marshal() (dAtA []byte, err error)

func (*Response) MarshalTo

func (m *Response) MarshalTo(dAtA []byte) (int, error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) Size

func (m *Response) Size() (n int)

func (*Response) String

func (m *Response) String() string

func (*Response) Unmarshal

func (m *Response) Unmarshal(dAtA []byte) error

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

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

func (*Response) XXX_Merge

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

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

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

type UnimplementedLogServiceServer

type UnimplementedLogServiceServer struct {
}

UnimplementedLogServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLogServiceServer) Ping

func (*UnimplementedLogServiceServer) SubmitMultiple

func (*UnimplementedLogServiceServer) SubmitMultiple(ctx context.Context, req *EventLogs) (*Response, error)

func (*UnimplementedLogServiceServer) SubmitSingle

func (*UnimplementedLogServiceServer) SubmitSingle(ctx context.Context, req *EventLog) (*Response, error)

Jump to

Keyboard shortcuts

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