Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterHedgeServer(s grpc.ServiceRegistrar, srv HedgeServer)
- type HedgeClient
- type HedgeServer
- type Hedge_BroadcastClient
- type Hedge_BroadcastServer
- type Hedge_SendClient
- type Hedge_SendServer
- type Hedge_SoSReadClient
- type Hedge_SoSReadServer
- type Hedge_SoSWriteClient
- type Hedge_SoSWriteServer
- type Payload
- type UnimplementedHedgeServer
- func (UnimplementedHedgeServer) Broadcast(grpc.BidiStreamingServer[Payload, Payload]) error
- func (UnimplementedHedgeServer) Send(grpc.BidiStreamingServer[Payload, Payload]) error
- func (UnimplementedHedgeServer) SoSClose(context.Context, *Payload) (*Payload, error)
- func (UnimplementedHedgeServer) SoSRead(grpc.BidiStreamingServer[Payload, Payload]) error
- func (UnimplementedHedgeServer) SoSWrite(grpc.BidiStreamingServer[Payload, Payload]) error
- type UnsafeHedgeServer
Constants ¶
const ( Hedge_Send_FullMethodName = "/hedgeproto.Hedge/Send" Hedge_Broadcast_FullMethodName = "/hedgeproto.Hedge/Broadcast" Hedge_SoSWrite_FullMethodName = "/hedgeproto.Hedge/SoSWrite" Hedge_SoSRead_FullMethodName = "/hedgeproto.Hedge/SoSRead" Hedge_SoSClose_FullMethodName = "/hedgeproto.Hedge/SoSClose" )
Variables ¶
var File_default_proto protoreflect.FileDescriptor
var Hedge_ServiceDesc = grpc.ServiceDesc{ ServiceName: "hedgeproto.Hedge", HandlerType: (*HedgeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SoSClose", Handler: _Hedge_SoSClose_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Send", Handler: _Hedge_Send_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "Broadcast", Handler: _Hedge_Broadcast_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "SoSWrite", Handler: _Hedge_SoSWrite_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "SoSRead", Handler: _Hedge_SoSRead_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "default.proto", }
Hedge_ServiceDesc is the grpc.ServiceDesc for Hedge service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHedgeServer ¶
func RegisterHedgeServer(s grpc.ServiceRegistrar, srv HedgeServer)
Types ¶
type HedgeClient ¶
type HedgeClient interface {
Send(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Payload, Payload], error)
Broadcast(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Payload, Payload], error)
SoSWrite(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Payload, Payload], error)
SoSRead(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Payload, Payload], error)
SoSClose(ctx context.Context, in *Payload, opts ...grpc.CallOption) (*Payload, error)
}
HedgeClient is the client API for Hedge 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 NewHedgeClient ¶
func NewHedgeClient(cc grpc.ClientConnInterface) HedgeClient
type HedgeServer ¶
type HedgeServer interface {
Send(grpc.BidiStreamingServer[Payload, Payload]) error
Broadcast(grpc.BidiStreamingServer[Payload, Payload]) error
SoSWrite(grpc.BidiStreamingServer[Payload, Payload]) error
SoSRead(grpc.BidiStreamingServer[Payload, Payload]) error
SoSClose(context.Context, *Payload) (*Payload, error)
// contains filtered or unexported methods
}
HedgeServer is the server API for Hedge service. All implementations must embed UnimplementedHedgeServer for forward compatibility.
type Hedge_BroadcastClient ¶
type Hedge_BroadcastClient = grpc.BidiStreamingClient[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_BroadcastServer ¶
type Hedge_BroadcastServer = grpc.BidiStreamingServer[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_SendClient ¶
type Hedge_SendClient = grpc.BidiStreamingClient[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_SendServer ¶
type Hedge_SendServer = grpc.BidiStreamingServer[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_SoSReadClient ¶
type Hedge_SoSReadClient = grpc.BidiStreamingClient[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_SoSReadServer ¶
type Hedge_SoSReadServer = grpc.BidiStreamingServer[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_SoSWriteClient ¶
type Hedge_SoSWriteClient = grpc.BidiStreamingClient[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Hedge_SoSWriteServer ¶
type Hedge_SoSWriteServer = grpc.BidiStreamingServer[Payload, Payload]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Payload ¶
type Payload struct {
Meta map[string]string `` /* 135-byte string literal not displayed */
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*Payload) Descriptor
deprecated
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶
func (x *Payload) ProtoReflect() protoreflect.Message
type UnimplementedHedgeServer ¶
type UnimplementedHedgeServer struct{}
UnimplementedHedgeServer must 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 (UnimplementedHedgeServer) Broadcast ¶
func (UnimplementedHedgeServer) Broadcast(grpc.BidiStreamingServer[Payload, Payload]) error
func (UnimplementedHedgeServer) Send ¶
func (UnimplementedHedgeServer) Send(grpc.BidiStreamingServer[Payload, Payload]) error
func (UnimplementedHedgeServer) SoSRead ¶
func (UnimplementedHedgeServer) SoSRead(grpc.BidiStreamingServer[Payload, Payload]) error
func (UnimplementedHedgeServer) SoSWrite ¶
func (UnimplementedHedgeServer) SoSWrite(grpc.BidiStreamingServer[Payload, Payload]) error
type UnsafeHedgeServer ¶
type UnsafeHedgeServer interface {
// contains filtered or unexported methods
}
UnsafeHedgeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HedgeServer will result in compilation errors.