v1

package
v0.0.0-...-33384a8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Health_Check_FullMethodName = "/wilson.api.container.health.v1.Health/Check"
)
View Source
const OperationHealthCheck = "/wilson.api.container.health.v1.Health/Check"

Variables

View Source
var File_container_health_v1_health_proto protoreflect.FileDescriptor
View Source
var File_container_health_v1_health_service_proto protoreflect.FileDescriptor
View Source
var Health_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wilson.api.container.health.v1.Health",
	HandlerType: (*HealthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Check",
			Handler:    _Health_Check_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "container/health/v1/health_service.proto",
}

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

Functions

func RegisterHealthHTTPServer

func RegisterHealthHTTPServer(s *http.Server, srv HealthHTTPServer)

func RegisterHealthServer

func RegisterHealthServer(s grpc.ServiceRegistrar, srv HealthServer)

Types

type HealthClient

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

HealthClient is the client API for Health 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 NewHealthClient

func NewHealthClient(cc grpc.ClientConnInterface) HealthClient

type HealthHTTPClient

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

func NewHealthHTTPClient

func NewHealthHTTPClient(client *http.Client) HealthHTTPClient

type HealthHTTPClientImpl

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

func (*HealthHTTPClientImpl) Check

type HealthHTTPServer

type HealthHTTPServer interface {
	Check(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

type HealthServer

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

HealthServer is the server API for Health service. All implementations must embed UnimplementedHealthServer for forward compatibility.

type UnimplementedHealthServer

type UnimplementedHealthServer struct{}

UnimplementedHealthServer 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 (UnimplementedHealthServer) Check

type UnsafeHealthServer

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

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

Jump to

Keyboard shortcuts

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