v1

package
v0.0.0-...-07f6388 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const OperationServerHello = "/api.v1.server.Server/Hello"
View Source
const (
	Server_Hello_FullMethodName = "/api.v1.server.Server/Hello"
)

Variables

View Source
var File_api_proto_server_v1_server_proto protoreflect.FileDescriptor
View Source
var File_api_proto_server_v1_server_service_proto protoreflect.FileDescriptor
View Source
var Server_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.server.Server",
	HandlerType: (*ServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _Server_Hello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/proto/server/v1/server_service.proto",
}

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

Functions

func RegisterServerHTTPServer

func RegisterServerHTTPServer(s *http.Server, srv ServerHTTPServer)

func RegisterServerServer

func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)

Types

type ServerClient

type ServerClient interface {
	Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServerClient is the client API for Server 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 NewServerClient

func NewServerClient(cc grpc.ClientConnInterface) ServerClient

type ServerHTTPClient

type ServerHTTPClient interface {
	Hello(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewServerHTTPClient

func NewServerHTTPClient(client *http.Client) ServerHTTPClient

type ServerHTTPClientImpl

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

func (*ServerHTTPClientImpl) Hello

type ServerHTTPServer

type ServerHTTPServer interface {
	Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

type ServerServer

type ServerServer interface {
	Hello(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility.

type UnimplementedServerServer

type UnimplementedServerServer struct{}

UnimplementedServerServer 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 (UnimplementedServerServer) Hello

type UnsafeServerServer

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

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

Jump to

Keyboard shortcuts

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