grpc_any_testing

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_any_test_proto protoreflect.FileDescriptor

Functions

func RegisterAnyTestServiceServer

func RegisterAnyTestServiceServer(s *grpc.Server, srv AnyTestServiceServer)

Types

type AnyTestServiceClient

type AnyTestServiceClient interface {
	Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumReply, error)
}

AnyTestServiceClient is the client API for AnyTestService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AnyTestServiceServer

type AnyTestServiceServer interface {
	Sum(context.Context, *SumRequest) (*SumReply, error)
}

AnyTestServiceServer is the server API for AnyTestService service.

type SumReply

type SumReply struct {
	Data *anypb.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SumReply) Descriptor deprecated

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

Deprecated: Use SumReply.ProtoReflect.Descriptor instead.

func (*SumReply) GetData

func (x *SumReply) GetData() *anypb.Any

func (*SumReply) ProtoMessage

func (*SumReply) ProtoMessage()

func (*SumReply) ProtoReflect

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

func (*SumReply) Reset

func (x *SumReply) Reset()

func (*SumReply) String

func (x *SumReply) String() string

type SumReplyData

type SumReplyData struct {
	V   int64  `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"`
	Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*SumReplyData) Descriptor deprecated

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

Deprecated: Use SumReplyData.ProtoReflect.Descriptor instead.

func (*SumReplyData) GetErr

func (x *SumReplyData) GetErr() string

func (*SumReplyData) GetV

func (x *SumReplyData) GetV() int64

func (*SumReplyData) ProtoMessage

func (*SumReplyData) ProtoMessage()

func (*SumReplyData) ProtoReflect

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

func (*SumReplyData) Reset

func (x *SumReplyData) Reset()

func (*SumReplyData) String

func (x *SumReplyData) String() string

type SumRequest

type SumRequest struct {
	Data *anypb.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SumRequest) Descriptor deprecated

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

Deprecated: Use SumRequest.ProtoReflect.Descriptor instead.

func (*SumRequest) GetData

func (x *SumRequest) GetData() *anypb.Any

func (*SumRequest) ProtoMessage

func (*SumRequest) ProtoMessage()

func (*SumRequest) ProtoReflect

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

func (*SumRequest) Reset

func (x *SumRequest) Reset()

func (*SumRequest) String

func (x *SumRequest) String() string

type SumRequestData

type SumRequestData struct {
	A int64 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	B int64 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*SumRequestData) Descriptor deprecated

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

Deprecated: Use SumRequestData.ProtoReflect.Descriptor instead.

func (*SumRequestData) GetA

func (x *SumRequestData) GetA() int64

func (*SumRequestData) GetB

func (x *SumRequestData) GetB() int64

func (*SumRequestData) ProtoMessage

func (*SumRequestData) ProtoMessage()

func (*SumRequestData) ProtoReflect

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

func (*SumRequestData) Reset

func (x *SumRequestData) Reset()

func (*SumRequestData) String

func (x *SumRequestData) String() string

type UnimplementedAnyTestServiceServer

type UnimplementedAnyTestServiceServer struct {
}

UnimplementedAnyTestServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAnyTestServiceServer) Sum

Jump to

Keyboard shortcuts

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