api

package
v0.0.0-...-fe5af3a Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group")
)

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

func (*ReportReq) GetActId

func (m *ReportReq) GetActId() string

func (*ReportReq) GetAmount

func (m *ReportReq) GetAmount() float32

func (*ReportReq) GetItemId

func (m *ReportReq) GetItemId() string

func (*ReportReq) GetPlatformId

func (m *ReportReq) GetPlatformId() string

func (*ReportReq) Marshal

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

func (*ReportReq) MarshalTo

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

func (*ReportReq) MarshalToSizedBuffer

func (m *ReportReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReportReq) ProtoMessage

func (*ReportReq) ProtoMessage()

func (*ReportReq) Reset

func (m *ReportReq) Reset()

func (*ReportReq) Size

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

func (*ReportReq) String

func (m *ReportReq) String() string

func (*ReportReq) Unmarshal

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

func (*ReportReq) XXX_DiscardUnknown

func (m *ReportReq) XXX_DiscardUnknown()

func (*ReportReq) XXX_Marshal

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

func (*ReportReq) XXX_Merge

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

func (*ReportReq) XXX_Size

func (m *ReportReq) XXX_Size() int

func (*ReportReq) XXX_Unmarshal

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

type ReportRsp

type ReportRsp struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReportRsp) Descriptor

func (*ReportRsp) Descriptor() ([]byte, []int)

func (*ReportRsp) Marshal

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

func (*ReportRsp) MarshalTo

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

func (*ReportRsp) MarshalToSizedBuffer

func (m *ReportRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReportRsp) ProtoMessage

func (*ReportRsp) ProtoMessage()

func (*ReportRsp) Reset

func (m *ReportRsp) Reset()

func (*ReportRsp) Size

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

func (*ReportRsp) String

func (m *ReportRsp) String() string

func (*ReportRsp) Unmarshal

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

func (*ReportRsp) XXX_DiscardUnknown

func (m *ReportRsp) XXX_DiscardUnknown()

func (*ReportRsp) XXX_Marshal

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

func (*ReportRsp) XXX_Merge

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

func (*ReportRsp) XXX_Size

func (m *ReportRsp) XXX_Size() int

func (*ReportRsp) XXX_Unmarshal

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

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

type StatisticsServer interface {
	// 上报
	Report(context.Context, *ReportReq) (*ReportRsp, error)
}

StatisticsServer is the server API for Statistics service.

type UnimplementedStatisticsServer

type UnimplementedStatisticsServer struct {
}

UnimplementedStatisticsServer can be embedded to have forward compatible implementations.

func (*UnimplementedStatisticsServer) Report

Jump to

Keyboard shortcuts

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