reporting

package module
v0.0.0-...-2bc910a Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

reporting

gRPC based client/server usage reporting module

Documentation

Overview

Package reporting is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

GRPCEvent
GRPCEvents

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

Functions

func RegisterEventsServiceServer

func RegisterEventsServiceServer(s *grpc.Server, srv EventsServiceServer)

Types

type EventsServiceClient

type EventsServiceClient interface {
	// Record records the provided list of gRPC events
	Record(ctx context.Context, in *GRPCEvents, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}

func NewEventsServiceClient

func NewEventsServiceClient(cc *grpc.ClientConn) EventsServiceClient

type EventsServiceServer

type EventsServiceServer interface {
	// Record records the provided list of gRPC events
	Record(context.Context, *GRPCEvents) (*google_protobuf.Empty, error)
}

type GRPCEvent

type GRPCEvent struct {
	// Data is the JSON-encoded event payload
	Data []byte `protobuf:"bytes,1,opt,name=Data,json=data,proto3" json:"Data,omitempty"`
}

GRPCEvent represents a single event sent over gRPC

func (*GRPCEvent) Descriptor

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

func (*GRPCEvent) Marshal

func (m *GRPCEvent) Marshal() (data []byte, err error)

func (*GRPCEvent) MarshalTo

func (m *GRPCEvent) MarshalTo(data []byte) (int, error)

func (*GRPCEvent) ProtoMessage

func (*GRPCEvent) ProtoMessage()

func (*GRPCEvent) Reset

func (m *GRPCEvent) Reset()

func (*GRPCEvent) Size

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

func (*GRPCEvent) String

func (m *GRPCEvent) String() string

func (*GRPCEvent) Unmarshal

func (m *GRPCEvent) Unmarshal(data []byte) error

type GRPCEvents

type GRPCEvents struct {
	// Events is a list of events
	Events []*GRPCEvent `protobuf:"bytes,1,rep,name=Events,json=events" json:"Events,omitempty"`
}

Events defines a series of events sent over gRPC

func (*GRPCEvents) Descriptor

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

func (*GRPCEvents) GetEvents

func (m *GRPCEvents) GetEvents() []*GRPCEvent

func (*GRPCEvents) Marshal

func (m *GRPCEvents) Marshal() (data []byte, err error)

func (*GRPCEvents) MarshalTo

func (m *GRPCEvents) MarshalTo(data []byte) (int, error)

func (*GRPCEvents) ProtoMessage

func (*GRPCEvents) ProtoMessage()

func (*GRPCEvents) Reset

func (m *GRPCEvents) Reset()

func (*GRPCEvents) Size

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

func (*GRPCEvents) String

func (m *GRPCEvents) String() string

func (*GRPCEvents) Unmarshal

func (m *GRPCEvents) Unmarshal(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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