Documentation ¶
Index ¶
- Constants
- Variables
- func NewProxyGatewayService(name string, opts ...runtime.Option) (_ toolkit.Service, err error)
- func RegisterProxyGatewayServer(s grpc.ServiceRegistrar, srv ProxyGatewayServer)
- type ProxyGatewayClient
- type ProxyGatewayHTTPService
- type ProxyGatewayRpcServer
- type ProxyGatewayServer
- type UnimplementedProxyGatewayServer
- type UnsafeProxyGatewayServer
Constants ¶
const (
ProxyGateway_HelloWorld_FullMethodName = "/gateway.ProxyGateway/HelloWorld"
)
Variables ¶
var File_github_com_lastbackend_toolkit_examples_gateway_apis_server_proto protoreflect.FileDescriptor
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 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.
func NewProxyGatewayClient ¶
func NewProxyGatewayClient(cc grpc.ClientConnInterface) ProxyGatewayClient
type ProxyGatewayHTTPService ¶
type ProxyGatewayRpcServer ¶
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 ¶
func (UnimplementedProxyGatewayServer) HelloWorld(context.Context, *gen.HelloRequest) (*gen.HelloReply, error)
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.