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 OperationWorldHello = "/api.v1.world.World/Hello"
View Source
const (
	World_Hello_FullMethodName = "/api.v1.world.World/Hello"
)

Variables

View Source
var File_api_proto_world_v1_world_proto protoreflect.FileDescriptor
View Source
var File_api_proto_world_v1_world_service_proto protoreflect.FileDescriptor
View Source
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.

func (UnimplementedWorldServer) Hello

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
}

func (*WorldHTTPClientImpl) Hello

type WorldHTTPServer

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

type WorldServer

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

WorldServer is the server API for World service. All implementations must embed UnimplementedWorldServer for forward compatibility.

Jump to

Keyboard shortcuts

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