proto

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Exchange_Send_FullMethodName = "/exchange.Exchange/Send"
	Exchange_Next_FullMethodName = "/exchange.Exchange/Next"
)

Variables

View Source
var Exchange_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "exchange.Exchange",
	HandlerType: (*ExchangeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _Exchange_Send_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Next",
			Handler:       _Exchange_Next_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "exchange.proto",
}

Exchange_ServiceDesc is the grpc.ServiceDesc for Exchange 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_exchange_proto protoreflect.FileDescriptor

Functions

func RegisterExchangeServer

func RegisterExchangeServer(s grpc.ServiceRegistrar, srv ExchangeServer)

Types

type ExchangeClient

type ExchangeClient interface {
	Send(ctx context.Context, in *SendReq, opts ...grpc.CallOption) (*SendRes, error)
	Next(ctx context.Context, in *NextReq, opts ...grpc.CallOption) (Exchange_NextClient, error)
}

ExchangeClient is the client API for Exchange 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 NewExchangeClient

func NewExchangeClient(cc grpc.ClientConnInterface) ExchangeClient

type ExchangeServer

type ExchangeServer interface {
	Send(context.Context, *SendReq) (*SendRes, error)
	Next(*NextReq, Exchange_NextServer) error
	// contains filtered or unexported methods
}

ExchangeServer is the server API for Exchange service. All implementations must embed UnimplementedExchangeServer for forward compatibility

type Exchange_NextClient

type Exchange_NextClient interface {
	Recv() (*NextRes, error)
	grpc.ClientStream
}

type Exchange_NextServer

type Exchange_NextServer interface {
	Send(*NextRes) error
	grpc.ServerStream
}

type NextReq

type NextReq struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*NextReq) Descriptor deprecated

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

Deprecated: Use NextReq.ProtoReflect.Descriptor instead.

func (*NextReq) GetName

func (x *NextReq) GetName() string

func (*NextReq) ProtoMessage

func (*NextReq) ProtoMessage()

func (*NextReq) ProtoReflect

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

func (*NextReq) Reset

func (x *NextReq) Reset()

func (*NextReq) String

func (x *NextReq) String() string

type NextRes

type NextRes struct {
	Msgbody string `protobuf:"bytes,1,opt,name=msgbody,proto3" json:"msgbody,omitempty"`
	// contains filtered or unexported fields
}

func (*NextRes) Descriptor deprecated

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

Deprecated: Use NextRes.ProtoReflect.Descriptor instead.

func (*NextRes) GetMsgbody

func (x *NextRes) GetMsgbody() string

func (*NextRes) ProtoMessage

func (*NextRes) ProtoMessage()

func (*NextRes) ProtoReflect

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

func (*NextRes) Reset

func (x *NextRes) Reset()

func (*NextRes) String

func (x *NextRes) String() string

type SendReq

type SendReq struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Msgbody string `protobuf:"bytes,2,opt,name=msgbody,proto3" json:"msgbody,omitempty"`
	// contains filtered or unexported fields
}

func (*SendReq) Descriptor deprecated

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

Deprecated: Use SendReq.ProtoReflect.Descriptor instead.

func (*SendReq) GetMsgbody

func (x *SendReq) GetMsgbody() string

func (*SendReq) GetName

func (x *SendReq) GetName() string

func (*SendReq) ProtoMessage

func (*SendReq) ProtoMessage()

func (*SendReq) ProtoReflect

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

func (*SendReq) Reset

func (x *SendReq) Reset()

func (*SendReq) String

func (x *SendReq) String() string

type SendRes

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

func (*SendRes) Descriptor deprecated

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

Deprecated: Use SendRes.ProtoReflect.Descriptor instead.

func (*SendRes) ProtoMessage

func (*SendRes) ProtoMessage()

func (*SendRes) ProtoReflect

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

func (*SendRes) Reset

func (x *SendRes) Reset()

func (*SendRes) String

func (x *SendRes) String() string

type UnimplementedExchangeServer

type UnimplementedExchangeServer struct {
}

UnimplementedExchangeServer must be embedded to have forward compatible implementations.

func (UnimplementedExchangeServer) Next

func (UnimplementedExchangeServer) Send

type UnsafeExchangeServer

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

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

Jump to

Keyboard shortcuts

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