pigeoneer

package
v0.1.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_pigeoneer_proto protoreflect.FileDescriptor
View Source
var Pigeoneer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "loggo.api.pigeoneer.Pigeoneer",
	HandlerType: (*PigeoneerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Dispatch",
			Handler:       _Pigeoneer_Dispatch_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/pigeoneer.proto",
}

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

Functions

func RegisterPigeoneerServer

func RegisterPigeoneerServer(s grpc.ServiceRegistrar, srv PigeoneerServer)

Types

type DispatchRequest

type DispatchRequest struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Message   []byte                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchRequest) Descriptor deprecated

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

Deprecated: Use DispatchRequest.ProtoReflect.Descriptor instead.

func (*DispatchRequest) GetMessage

func (x *DispatchRequest) GetMessage() []byte

func (*DispatchRequest) GetTimestamp

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

func (*DispatchRequest) ProtoMessage

func (*DispatchRequest) ProtoMessage()

func (*DispatchRequest) ProtoReflect

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

func (*DispatchRequest) Reset

func (x *DispatchRequest) Reset()

func (*DispatchRequest) String

func (x *DispatchRequest) String() string

type PigeoneerClient

type PigeoneerClient interface {
	Dispatch(ctx context.Context, opts ...grpc.CallOption) (Pigeoneer_DispatchClient, error)
}

PigeoneerClient is the client API for Pigeoneer 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 NewPigeoneerClient

func NewPigeoneerClient(cc grpc.ClientConnInterface) PigeoneerClient

type PigeoneerServer

type PigeoneerServer interface {
	Dispatch(Pigeoneer_DispatchServer) error
	// contains filtered or unexported methods
}

PigeoneerServer is the server API for Pigeoneer service. All implementations must embed UnimplementedPigeoneerServer for forward compatibility

type Pigeoneer_DispatchClient

type Pigeoneer_DispatchClient interface {
	Send(*DispatchRequest) error
	Recv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type Pigeoneer_DispatchServer

type Pigeoneer_DispatchServer interface {
	Send(*emptypb.Empty) error
	Recv() (*DispatchRequest, error)
	grpc.ServerStream
}

type UnimplementedPigeoneerServer

type UnimplementedPigeoneerServer struct {
}

UnimplementedPigeoneerServer must be embedded to have forward compatible implementations.

func (UnimplementedPigeoneerServer) Dispatch

type UnsafePigeoneerServer

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

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

Jump to

Keyboard shortcuts

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