servicepb

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: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Example_HelloWorld_FullMethodName = "/lastbackend.example.Example/HelloWorld"
)

Variables

View Source
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)

View Source
var File_github_com_lastbackend_toolkit_examples_service_apis_example_proto protoreflect.FileDescriptor
View Source
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 NewExampleService(name string, opts ...runtime.Option) (_ toolkit.Service, err error)

func NewSampleService

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

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 ExampleHTTPService interface {
	HelloWorld(ctx context.Context, req *typespb.HelloWorldRequest) (*typespb.HelloWorldResponse, error)
}

type ExampleRpcServer

type ExampleRpcServer interface {
	HelloWorld(ctx context.Context, req *typespb.HelloWorldRequest) (*typespb.HelloWorldResponse, error)
}

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 Redis2Plugin interface {
	redis.Plugin
}

type RedisPlugin

type RedisPlugin interface {
	redis.Plugin
}

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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