hedgeproto

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 8 Imported by: 4

README

Shared protobuf definitions for hedge and hedge-cb.

Documentation

Index

Constants

View Source
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

View Source
var File_default_proto protoreflect.FileDescriptor
View Source
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

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) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetData

func (x *Payload) GetData() []byte

func (*Payload) GetMeta

func (x *Payload) GetMeta() map[string]string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

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

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

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

func (UnimplementedHedgeServer) SoSClose

func (UnimplementedHedgeServer) SoSRead

func (UnimplementedHedgeServer) SoSWrite

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.

Jump to

Keyboard shortcuts

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