Documentation ¶
Index ¶
Constants ¶
const (
Mod_Hello_FullMethodName = "/api.v1.mod.Mod/Hello"
)
const OperationModHello = "/api.v1.mod.Mod/Hello"
Variables ¶
var File_api_proto_mod_v1_mod_proto protoreflect.FileDescriptor
var File_api_proto_mod_v1_mod_service_proto protoreflect.FileDescriptor
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
}
type ModHTTPServer ¶
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.
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.