proto

package
v0.0.0-...-0e72998 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SampleService_Echo_FullMethodName       = "/api.SampleService/Echo"
	SampleService_Echox_FullMethodName      = "/api.SampleService/Echox"
	SampleService_RaiseError_FullMethodName = "/api.SampleService/RaiseError"
)

Variables

View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var SampleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.SampleService",
	HandlerType: (*SampleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _SampleService_Echo_Handler,
		},
		{
			MethodName: "Echox",
			Handler:    _SampleService_Echox_Handler,
		},
		{
			MethodName: "RaiseError",
			Handler:    _SampleService_RaiseError_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

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

Functions

func RegisterSampleServiceServer

func RegisterSampleServiceServer(s grpc.ServiceRegistrar, srv SampleServiceServer)

Types

type SampleServiceClient

type SampleServiceClient interface {
	Echo(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.StringValue, error)
	Echox(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.StringValue, error)
	RaiseError(ctx context.Context, in *wrapperspb.UInt32Value, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

SampleServiceClient is the client API for SampleService 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 SampleServiceServer

type SampleServiceServer interface {
	Echo(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
	Echox(context.Context, *wrapperspb.StringValue) (*wrapperspb.StringValue, error)
	RaiseError(context.Context, *wrapperspb.UInt32Value) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

SampleServiceServer is the server API for SampleService service. All implementations must embed UnimplementedSampleServiceServer for forward compatibility

type UnimplementedSampleServiceServer

type UnimplementedSampleServiceServer struct {
}

UnimplementedSampleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSampleServiceServer) Echo

func (UnimplementedSampleServiceServer) Echox

func (UnimplementedSampleServiceServer) RaiseError

type UnsafeSampleServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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