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 (
	Mod_Hello_FullMethodName = "/api.v1.mod.Mod/Hello"
)
View Source
const OperationModHello = "/api.v1.mod.Mod/Hello"

Variables

View Source
var File_api_proto_mod_v1_mod_proto protoreflect.FileDescriptor
View Source
var File_api_proto_mod_v1_mod_service_proto protoreflect.FileDescriptor
View Source
var Mod_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.mod.Mod",
	HandlerType: (*ModServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Hello",
			Handler:    _Mod_Hello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/proto/mod/v1/mod_service.proto",
}

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

Functions

func RegisterModHTTPServer

func RegisterModHTTPServer(s *http.Server, srv ModHTTPServer)

func RegisterModServer

func RegisterModServer(s grpc.ServiceRegistrar, srv ModServer)

Types

type ModClient

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

ModClient is the client API for Mod 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 NewModClient

func NewModClient(cc grpc.ClientConnInterface) ModClient

type ModHTTPClient

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

func NewModHTTPClient

func NewModHTTPClient(client *http.Client) ModHTTPClient

type ModHTTPClientImpl

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

func (*ModHTTPClientImpl) Hello

func (c *ModHTTPClientImpl) Hello(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)

type ModHTTPServer

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

type ModServer

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

ModServer is the server API for Mod service. All implementations must embed UnimplementedModServer for forward compatibility.

type UnimplementedModServer

type UnimplementedModServer struct{}

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

type UnsafeModServer

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

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

Jump to

Keyboard shortcuts

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