serverpb

package
v0.0.0-...-cafa37b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyGateway_HelloWorld_FullMethodName = "/gateway.ProxyGateway/HelloWorld"
)

Variables

View Source
var File_github_com_lastbackend_toolkit_examples_gateway_apis_server_proto protoreflect.FileDescriptor
View Source
var ProxyGateway_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gateway.ProxyGateway",
	HandlerType: (*ProxyGatewayServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HelloWorld",
			Handler:    _ProxyGateway_HelloWorld_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/lastbackend/toolkit/examples/gateway/apis/server.proto",
}

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

Functions

func NewProxyGatewayService

func NewProxyGatewayService(name string, opts ...runtime.Option) (_ toolkit.Service, err error)

func RegisterProxyGatewayServer

func RegisterProxyGatewayServer(s grpc.ServiceRegistrar, srv ProxyGatewayServer)

Types

type ProxyGatewayClient

type ProxyGatewayClient interface {
	HelloWorld(ctx context.Context, in *gen.HelloRequest, opts ...grpc.CallOption) (*gen.HelloReply, error)
}

ProxyGatewayClient is the client API for ProxyGateway 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 ProxyGatewayHTTPService

type ProxyGatewayHTTPService interface {
	HelloWorld(ctx context.Context, req *servicepb.HelloRequest) (*servicepb.HelloReply, error)
}

type ProxyGatewayRpcServer

type ProxyGatewayRpcServer interface {
	HelloWorld(ctx context.Context, req *servicepb.HelloRequest) (*servicepb.HelloReply, error)
}

type ProxyGatewayServer

type ProxyGatewayServer interface {
	HelloWorld(context.Context, *gen.HelloRequest) (*gen.HelloReply, error)
}

ProxyGatewayServer is the server API for ProxyGateway service. All implementations should embed UnimplementedProxyGatewayServer for forward compatibility

type UnimplementedProxyGatewayServer

type UnimplementedProxyGatewayServer struct {
}

UnimplementedProxyGatewayServer should be embedded to have forward compatible implementations.

func (UnimplementedProxyGatewayServer) HelloWorld

type UnsafeProxyGatewayServer

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

UnsafeProxyGatewayServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProxyGatewayServer 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