protobuf

package
v0.0.0-...-3aef48a Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EchoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "functionaltest.EchoService",
	HandlerType: (*EchoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _EchoService_Echo_Handler,
		},
		{
			MethodName: "Err",
			Handler:    _EchoService_Err_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "echo.proto",
}

EchoService_ServiceDesc is the grpc.ServiceDesc for EchoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterEchoServiceServer

func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)

Types

type EchoMsg

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

func (*EchoMsg) Descriptor deprecated

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

Deprecated: Use EchoMsg.ProtoReflect.Descriptor instead.

func (*EchoMsg) GetMessage

func (x *EchoMsg) GetMessage() string

func (*EchoMsg) ProtoMessage

func (*EchoMsg) ProtoMessage()

func (*EchoMsg) ProtoReflect

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

func (*EchoMsg) Reset

func (x *EchoMsg) Reset()

func (*EchoMsg) String

func (x *EchoMsg) String() string

type EchoServiceClient

type EchoServiceClient interface {
	Echo(ctx context.Context, in *EchoMsg, opts ...grpc.CallOption) (*EchoMsg, error)
	Err(ctx context.Context, in *ErrMsg, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

EchoServiceClient is the client API for EchoService 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.

type EchoServiceServer

type EchoServiceServer interface {
	Echo(context.Context, *EchoMsg) (*EchoMsg, error)
	Err(context.Context, *ErrMsg) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

EchoServiceServer is the server API for EchoService service. All implementations must embed UnimplementedEchoServiceServer for forward compatibility

type ErrMsg

type ErrMsg struct {
	Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrMsg) Descriptor deprecated

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

Deprecated: Use ErrMsg.ProtoReflect.Descriptor instead.

func (*ErrMsg) GetCode

func (x *ErrMsg) GetCode() int64

func (*ErrMsg) ProtoMessage

func (*ErrMsg) ProtoMessage()

func (*ErrMsg) ProtoReflect

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

func (*ErrMsg) Reset

func (x *ErrMsg) Reset()

func (*ErrMsg) String

func (x *ErrMsg) String() string

type UnimplementedEchoServiceServer

type UnimplementedEchoServiceServer struct {
}

UnimplementedEchoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEchoServiceServer) Echo

func (UnimplementedEchoServiceServer) Err

type UnsafeEchoServiceServer

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

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

Jump to

Keyboard shortcuts

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