proto

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Droptailer_Push_FullMethodName = "/proto.Droptailer/Push"
)

Variables

View Source
var Droptailer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Droptailer",
	HandlerType: (*DroptailerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Push",
			Handler:    _Droptailer_Push_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/droptailer.proto",
}

Droptailer_ServiceDesc is the grpc.ServiceDesc for Droptailer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_droptailer_proto protoreflect.FileDescriptor

Functions

func RegisterDroptailerServer

func RegisterDroptailerServer(s grpc.ServiceRegistrar, srv DroptailerServer)

Types

type Drop

type Drop struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Fields    map[string]string      `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Drop) Descriptor deprecated

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

Deprecated: Use Drop.ProtoReflect.Descriptor instead.

func (*Drop) GetFields

func (x *Drop) GetFields() map[string]string

func (*Drop) GetTimestamp

func (x *Drop) GetTimestamp() *timestamppb.Timestamp

func (*Drop) ProtoMessage

func (*Drop) ProtoMessage()

func (*Drop) ProtoReflect

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

func (*Drop) Reset

func (x *Drop) Reset()

func (*Drop) String

func (x *Drop) String() string

type DroptailerClient

type DroptailerClient interface {
	Push(ctx context.Context, in *Drop, opts ...grpc.CallOption) (*Void, error)
}

DroptailerClient is the client API for Droptailer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewDroptailerClient

func NewDroptailerClient(cc grpc.ClientConnInterface) DroptailerClient

type DroptailerServer

type DroptailerServer interface {
	Push(context.Context, *Drop) (*Void, error)
}

DroptailerServer is the server API for Droptailer service. All implementations should embed UnimplementedDroptailerServer for forward compatibility.

type UnimplementedDroptailerServer

type UnimplementedDroptailerServer struct{}

UnimplementedDroptailerServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDroptailerServer) Push

type UnsafeDroptailerServer

type UnsafeDroptailerServer interface {
	// contains filtered or unexported methods
}

UnsafeDroptailerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DroptailerServer will result in compilation errors.

type Void

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

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

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

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

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