Documentation ¶
Index ¶
- Variables
- func RegisterStatisticsServer(s *grpc.Server, srv StatisticsServer)
- type ReportReq
- func (*ReportReq) Descriptor() ([]byte, []int)
- func (m *ReportReq) GetActId() string
- func (m *ReportReq) GetAmount() float32
- func (m *ReportReq) GetItemId() string
- func (m *ReportReq) GetPlatformId() string
- func (m *ReportReq) Marshal() (dAtA []byte, err error)
- func (m *ReportReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ReportReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReportReq) ProtoMessage()
- func (m *ReportReq) Reset()
- func (m *ReportReq) Size() (n int)
- func (m *ReportReq) String() string
- func (m *ReportReq) Unmarshal(dAtA []byte) error
- func (m *ReportReq) XXX_DiscardUnknown()
- func (m *ReportReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportReq) XXX_Merge(src proto.Message)
- func (m *ReportReq) XXX_Size() int
- func (m *ReportReq) XXX_Unmarshal(b []byte) error
- type ReportRsp
- func (*ReportRsp) Descriptor() ([]byte, []int)
- func (m *ReportRsp) Marshal() (dAtA []byte, err error)
- func (m *ReportRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *ReportRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReportRsp) ProtoMessage()
- func (m *ReportRsp) Reset()
- func (m *ReportRsp) Size() (n int)
- func (m *ReportRsp) String() string
- func (m *ReportRsp) Unmarshal(dAtA []byte) error
- func (m *ReportRsp) XXX_DiscardUnknown()
- func (m *ReportRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportRsp) XXX_Merge(src proto.Message)
- func (m *ReportRsp) XXX_Size() int
- func (m *ReportRsp) XXX_Unmarshal(b []byte) error
- type StatisticsClient
- type StatisticsServer
- type UnimplementedStatisticsServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterStatisticsServer ¶
func RegisterStatisticsServer(s *grpc.Server, srv StatisticsServer)
Types ¶
type ReportReq ¶
type ReportReq struct { // 平台 PlatformId *string `protobuf:"bytes,1,req,name=platform_id,json=platformId" json:"platform_id,omitempty"` // 活动 ActId *string `protobuf:"bytes,2,req,name=act_id,json=actId" json:"act_id,omitempty"` // 统计项 ItemId *string `protobuf:"bytes,3,req,name=item_id,json=itemId" json:"item_id,omitempty"` // 数值 Amount *float32 `protobuf:"fixed32,4,req,name=amount" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReportReq) Descriptor ¶
func (*ReportReq) GetPlatformId ¶
func (*ReportReq) MarshalToSizedBuffer ¶
func (*ReportReq) ProtoMessage ¶
func (*ReportReq) ProtoMessage()
func (*ReportReq) XXX_DiscardUnknown ¶
func (m *ReportReq) XXX_DiscardUnknown()
func (*ReportReq) XXX_Marshal ¶
func (*ReportReq) XXX_Unmarshal ¶
type ReportRsp ¶
type ReportRsp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReportRsp) Descriptor ¶
func (*ReportRsp) MarshalToSizedBuffer ¶
func (*ReportRsp) ProtoMessage ¶
func (*ReportRsp) ProtoMessage()
func (*ReportRsp) XXX_DiscardUnknown ¶
func (m *ReportRsp) XXX_DiscardUnknown()
func (*ReportRsp) XXX_Marshal ¶
func (*ReportRsp) XXX_Unmarshal ¶
type StatisticsClient ¶
type StatisticsClient interface { // 上报 Report(ctx context.Context, in *ReportReq, opts ...grpc.CallOption) (*ReportRsp, error) }
StatisticsClient is the client API for Statistics service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStatisticsClient ¶
func NewStatisticsClient(cc *grpc.ClientConn) StatisticsClient
type StatisticsServer ¶
StatisticsServer is the server API for Statistics service.
type UnimplementedStatisticsServer ¶
type UnimplementedStatisticsServer struct { }
UnimplementedStatisticsServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.