Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWorldHTTPServer(s *http.Server, srv WorldHTTPServer)
- func RegisterWorldServer(s grpc.ServiceRegistrar, srv WorldServer)
- type UnimplementedWorldServer
- type UnsafeWorldServer
- type WorldClient
- type WorldHTTPClient
- type WorldHTTPClientImpl
- type WorldHTTPServer
- type WorldServer
Constants ¶
const OperationWorldHello = "/api.v1.world.World/Hello"
const (
World_Hello_FullMethodName = "/api.v1.world.World/Hello"
)
Variables ¶
var File_api_proto_world_v1_world_proto protoreflect.FileDescriptor
var File_api_proto_world_v1_world_service_proto protoreflect.FileDescriptor
var World_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.world.World", HandlerType: (*WorldServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Hello", Handler: _World_Hello_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/proto/world/v1/world_service.proto", }
World_ServiceDesc is the grpc.ServiceDesc for World service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWorldHTTPServer ¶
func RegisterWorldHTTPServer(s *http.Server, srv WorldHTTPServer)
func RegisterWorldServer ¶
func RegisterWorldServer(s grpc.ServiceRegistrar, srv WorldServer)
Types ¶
type UnimplementedWorldServer ¶
type UnimplementedWorldServer struct{}
UnimplementedWorldServer 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 UnsafeWorldServer ¶
type UnsafeWorldServer interface {
// contains filtered or unexported methods
}
UnsafeWorldServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorldServer will result in compilation errors.
type WorldClient ¶
type WorldClient interface {
Hello(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
WorldClient is the client API for World 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 NewWorldClient ¶
func NewWorldClient(cc grpc.ClientConnInterface) WorldClient
type WorldHTTPClient ¶
type WorldHTTPClient interface {
Hello(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}
func NewWorldHTTPClient ¶
func NewWorldHTTPClient(client *http.Client) WorldHTTPClient
type WorldHTTPClientImpl ¶
type WorldHTTPClientImpl struct {
// contains filtered or unexported fields
}