_gogrpc

package
v1.3.0-20240329114010-... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IngressService_Port_FullMethodName    = "/ingress.IngressService/Port"
	IngressService_Create_FullMethodName  = "/ingress.IngressService/Create"
	IngressService_Remove_FullMethodName  = "/ingress.IngressService/Remove"
	IngressService_Inspect_FullMethodName = "/ingress.IngressService/Inspect"
	IngressService_Proxies_FullMethodName = "/ingress.IngressService/Proxies"
	IngressService_Notice_FullMethodName  = "/ingress.IngressService/Notice"
)

Variables

View Source
var IngressService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ingress.IngressService",
	HandlerType: (*IngressServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Port",
			Handler:    _IngressService_Port_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _IngressService_Create_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _IngressService_Remove_Handler,
		},
		{
			MethodName: "Inspect",
			Handler:    _IngressService_Inspect_Handler,
		},
		{
			MethodName: "Proxies",
			Handler:    _IngressService_Proxies_Handler,
		},
		{
			MethodName: "Notice",
			Handler:    _IngressService_Notice_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ingress.proto",
}

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

Functions

func RegisterIngressServiceServer

func RegisterIngressServiceServer(s grpc.ServiceRegistrar, srv IngressServiceServer)

Types

type IngressServiceClient

type IngressServiceClient interface {
	Port(ctx context.Context, in *_go.PortReq, opts ...grpc.CallOption) (*_go.PortRsp, error)
	Create(ctx context.Context, in *_go.CreateReq, opts ...grpc.CallOption) (*_go.Empty, error)
	Remove(ctx context.Context, in *_go.NamesReq, opts ...grpc.CallOption) (*_go.Empty, error)
	Inspect(ctx context.Context, in *_go.NamesReq, opts ...grpc.CallOption) (*_go.InspectRsp, error)
	Proxies(ctx context.Context, in *_go.ListReq, opts ...grpc.CallOption) (*_go.ProxiesRsp, error)
	Notice(ctx context.Context, in *_go.NoticeReq, opts ...grpc.CallOption) (*_go.Empty, error)
}

IngressServiceClient is the client API for IngressService 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 NewIngressServiceClient

func NewIngressServiceClient(cc grpc.ClientConnInterface) IngressServiceClient

type IngressServiceServer

type IngressServiceServer interface {
	Port(context.Context, *_go.PortReq) (*_go.PortRsp, error)
	Create(context.Context, *_go.CreateReq) (*_go.Empty, error)
	Remove(context.Context, *_go.NamesReq) (*_go.Empty, error)
	Inspect(context.Context, *_go.NamesReq) (*_go.InspectRsp, error)
	Proxies(context.Context, *_go.ListReq) (*_go.ProxiesRsp, error)
	Notice(context.Context, *_go.NoticeReq) (*_go.Empty, error)
}

IngressServiceServer is the server API for IngressService service. All implementations should embed UnimplementedIngressServiceServer for forward compatibility

type UnimplementedIngressServiceServer

type UnimplementedIngressServiceServer struct {
}

UnimplementedIngressServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedIngressServiceServer) Create

func (UnimplementedIngressServiceServer) Inspect

func (UnimplementedIngressServiceServer) Notice

func (UnimplementedIngressServiceServer) Port

func (UnimplementedIngressServiceServer) Proxies

func (UnimplementedIngressServiceServer) Remove

type UnsafeIngressServiceServer

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

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

Jump to

Keyboard shortcuts

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