collector

package
v0.0.0-...-c29d54a Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_app_usage_collector_proto protoreflect.FileDescriptor

Functions

func RegisterAppUsageCollectorServer

func RegisterAppUsageCollectorServer(s *grpc.Server, srv AppUsageCollectorServer)

Types

type AppUsageCollectorClient

type AppUsageCollectorClient interface {
	SendUsage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error)
}

AppUsageCollectorClient is the client API for AppUsageCollector service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AppUsageCollectorServer

type AppUsageCollectorServer interface {
	SendUsage(context.Context, *UsageRequest) (*UsageResponse, error)
}

AppUsageCollectorServer is the server API for AppUsageCollector service.

type UnimplementedAppUsageCollectorServer

type UnimplementedAppUsageCollectorServer struct {
}

UnimplementedAppUsageCollectorServer can be embedded to have forward compatible implementations.

func (*UnimplementedAppUsageCollectorServer) SendUsage

type UsageRequest

type UsageRequest struct {
	PlanId string  `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
	UserId string  `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Usage  float32 `protobuf:"fixed32,3,opt,name=usage,proto3" json:"usage,omitempty"`
	// contains filtered or unexported fields
}

func (*UsageRequest) Descriptor deprecated

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

Deprecated: Use UsageRequest.ProtoReflect.Descriptor instead.

func (*UsageRequest) GetPlanId

func (x *UsageRequest) GetPlanId() string

func (*UsageRequest) GetUsage

func (x *UsageRequest) GetUsage() float32

func (*UsageRequest) GetUserId

func (x *UsageRequest) GetUserId() string

func (*UsageRequest) ProtoMessage

func (*UsageRequest) ProtoMessage()

func (*UsageRequest) ProtoReflect

func (x *UsageRequest) ProtoReflect() protoreflect.Message

func (*UsageRequest) Reset

func (x *UsageRequest) Reset()

func (*UsageRequest) String

func (x *UsageRequest) String() string

type UsageResponse

type UsageResponse struct {
	// contains filtered or unexported fields
}

func (*UsageResponse) Descriptor deprecated

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

Deprecated: Use UsageResponse.ProtoReflect.Descriptor instead.

func (*UsageResponse) ProtoMessage

func (*UsageResponse) ProtoMessage()

func (*UsageResponse) ProtoReflect

func (x *UsageResponse) ProtoReflect() protoreflect.Message

func (*UsageResponse) Reset

func (x *UsageResponse) Reset()

func (*UsageResponse) String

func (x *UsageResponse) String() string

Jump to

Keyboard shortcuts

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