Documentation ¶
Index ¶
- Variables
- func RegisterPigeoneerServer(s grpc.ServiceRegistrar, srv PigeoneerServer)
- type DispatchRequest
- func (*DispatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DispatchRequest) GetMessage() []byte
- func (x *DispatchRequest) GetTimestamp() *timestamppb.Timestamp
- func (*DispatchRequest) ProtoMessage()
- func (x *DispatchRequest) ProtoReflect() protoreflect.Message
- func (x *DispatchRequest) Reset()
- func (x *DispatchRequest) String() string
- type PigeoneerClient
- type PigeoneerServer
- type Pigeoneer_DispatchClient
- type Pigeoneer_DispatchServer
- type UnimplementedPigeoneerServer
- type UnsafePigeoneerServer
Constants ¶
This section is empty.
Variables ¶
var File_api_pigeoneer_proto protoreflect.FileDescriptor
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 ¶
func (UnimplementedPigeoneerServer) Dispatch(Pigeoneer_DispatchServer) error
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.