Documentation ¶
Index ¶
- Constants
- Variables
- func NewExampleService(name string, opts ...runtime.Option) (_ toolkit.Service, err error)
- func NewSampleService(name string, opts ...runtime.Option) (_ toolkit.Service, err error)
- func RegisterExampleServer(s grpc.ServiceRegistrar, srv ExampleServer)
- func RegisterSampleServer(s grpc.ServiceRegistrar, srv SampleServer)
- type ExampleClient
- type ExampleHTTPService
- type ExampleRpcServer
- type ExampleServer
- type ExampleServices
- type PgsqlPlugin
- type Redis2Plugin
- type RedisPlugin
- type SampleClient
- type SampleServer
- type SampleServices
- type UnimplementedExampleServer
- type UnimplementedSampleServer
- type UnsafeExampleServer
- type UnsafeSampleServer
Constants ¶
const (
Example_HelloWorld_FullMethodName = "/lastbackend.example.Example/HelloWorld"
)
Variables ¶
var Example_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lastbackend.example.Example", HandlerType: (*ExampleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HelloWorld", Handler: _Example_HelloWorld_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/lastbackend/toolkit/examples/service/apis/example.proto", }
Example_ServiceDesc is the grpc.ServiceDesc for Example service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_github_com_lastbackend_toolkit_examples_service_apis_example_proto protoreflect.FileDescriptor
var Sample_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lastbackend.example.Sample", HandlerType: (*SampleServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{}, Metadata: "github.com/lastbackend/toolkit/examples/service/apis/example.proto", }
Sample_ServiceDesc is the grpc.ServiceDesc for Sample service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NewExampleService ¶
func NewSampleService ¶
func RegisterExampleServer ¶
func RegisterExampleServer(s grpc.ServiceRegistrar, srv ExampleServer)
func RegisterSampleServer ¶
func RegisterSampleServer(s grpc.ServiceRegistrar, srv SampleServer)
Types ¶
type ExampleClient ¶
type ExampleClient interface { // Example methods HelloWorld(ctx context.Context, in *ptypes.HelloWorldRequest, opts ...grpc.CallOption) (*ptypes.HelloWorldResponse, error) }
ExampleClient is the client API for Example 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 NewExampleClient ¶
func NewExampleClient(cc grpc.ClientConnInterface) ExampleClient
type ExampleHTTPService ¶
type ExampleRpcServer ¶
type ExampleServer ¶
type ExampleServer interface { // Example methods HelloWorld(context.Context, *ptypes.HelloWorldRequest) (*ptypes.HelloWorldResponse, error) }
ExampleServer is the server API for Example service. All implementations should embed UnimplementedExampleServer for forward compatibility
type ExampleServices ¶
type ExampleServices interface {
Example() example.ExampleRPCClient
}
Client services define
type PgsqlPlugin ¶
type PgsqlPlugin interface { postgres_gorm.Plugin }
type Redis2Plugin ¶
type RedisPlugin ¶
type SampleClient ¶
type SampleClient interface { }
SampleClient is the client API for Sample 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 NewSampleClient ¶
func NewSampleClient(cc grpc.ClientConnInterface) SampleClient
type SampleServer ¶
type SampleServer interface { }
SampleServer is the server API for Sample service. All implementations should embed UnimplementedSampleServer for forward compatibility
type SampleServices ¶
type SampleServices interface {
Example() example.ExampleRPCClient
}
Client services define
type UnimplementedExampleServer ¶
type UnimplementedExampleServer struct { }
UnimplementedExampleServer should be embedded to have forward compatible implementations.
func (UnimplementedExampleServer) HelloWorld ¶
func (UnimplementedExampleServer) HelloWorld(context.Context, *ptypes.HelloWorldRequest) (*ptypes.HelloWorldResponse, error)
type UnimplementedSampleServer ¶
type UnimplementedSampleServer struct { }
UnimplementedSampleServer should be embedded to have forward compatible implementations.
type UnsafeExampleServer ¶
type UnsafeExampleServer interface {
// contains filtered or unexported methods
}
UnsafeExampleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExampleServer will result in compilation errors.
type UnsafeSampleServer ¶
type UnsafeSampleServer interface {
// contains filtered or unexported methods
}
UnsafeSampleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SampleServer will result in compilation errors.