_gogrpc

package
v1.4.0-20240411175531-... 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 (
	MercuryService_Deploy_FullMethodName     = "/mercury.MercuryService/Deploy"
	MercuryService_Inspect_FullMethodName    = "/mercury.MercuryService/Inspect"
	MercuryService_Watch_FullMethodName      = "/mercury.MercuryService/Watch"
	MercuryService_InspectPod_FullMethodName = "/mercury.MercuryService/InspectPod"
	MercuryService_Remove_FullMethodName     = "/mercury.MercuryService/Remove"
	MercuryService_List_FullMethodName       = "/mercury.MercuryService/List"
	MercuryService_Event_FullMethodName      = "/mercury.MercuryService/Event"
	MercuryService_Log_FullMethodName        = "/mercury.MercuryService/Log"
	MercuryService_Exec_FullMethodName       = "/mercury.MercuryService/Exec"
	MercuryService_LogStream_FullMethodName  = "/mercury.MercuryService/LogStream"
	MercuryService_Shell_FullMethodName      = "/mercury.MercuryService/Shell"
)

Variables

View Source
var MercuryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "mercury.MercuryService",
	HandlerType: (*MercuryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Deploy",
			Handler:    _MercuryService_Deploy_Handler,
		},
		{
			MethodName: "Inspect",
			Handler:    _MercuryService_Inspect_Handler,
		},
		{
			MethodName: "Watch",
			Handler:    _MercuryService_Watch_Handler,
		},
		{
			MethodName: "InspectPod",
			Handler:    _MercuryService_InspectPod_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _MercuryService_Remove_Handler,
		},
		{
			MethodName: "List",
			Handler:    _MercuryService_List_Handler,
		},
		{
			MethodName: "Event",
			Handler:    _MercuryService_Event_Handler,
		},
		{
			MethodName: "Log",
			Handler:    _MercuryService_Log_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _MercuryService_Exec_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "LogStream",
			Handler:       _MercuryService_LogStream_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Shell",
			Handler:       _MercuryService_Shell_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "mercury.proto",
}

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

Functions

func RegisterMercuryServiceServer

func RegisterMercuryServiceServer(s grpc.ServiceRegistrar, srv MercuryServiceServer)

Types

type MercuryServiceClient

type MercuryServiceClient interface {
	Deploy(ctx context.Context, in *_go.DeployReq, opts ...grpc.CallOption) (*_go.InspectRsp, error)
	Inspect(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.InspectRsp, error)
	Watch(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.WatchRsp, error)
	InspectPod(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.PodListRsp, error)
	Remove(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.Empty, error)
	List(ctx context.Context, in *_go.ListReq, opts ...grpc.CallOption) (*_go.ListRsp, error)
	Event(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.EventListRsp, error)
	Log(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.LogRsp, error)
	Exec(ctx context.Context, in *_go.ExecReq, opts ...grpc.CallOption) (*_go.ExecRsp, error)
	LogStream(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (MercuryService_LogStreamClient, error)
	Shell(ctx context.Context, opts ...grpc.CallOption) (MercuryService_ShellClient, error)
}

MercuryServiceClient is the client API for MercuryService 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 NewMercuryServiceClient

func NewMercuryServiceClient(cc grpc.ClientConnInterface) MercuryServiceClient

type MercuryServiceServer

MercuryServiceServer is the server API for MercuryService service. All implementations should embed UnimplementedMercuryServiceServer for forward compatibility

type MercuryService_LogStreamClient

type MercuryService_LogStreamClient interface {
	Recv() (*_go.LogRsp_Log, error)
	grpc.ClientStream
}

type MercuryService_LogStreamServer

type MercuryService_LogStreamServer interface {
	Send(*_go.LogRsp_Log) error
	grpc.ServerStream
}

type MercuryService_ShellClient

type MercuryService_ShellClient interface {
	Send(*_go.ShellReq) error
	Recv() (*_go.ShellRsp, error)
	grpc.ClientStream
}

type MercuryService_ShellServer

type MercuryService_ShellServer interface {
	Send(*_go.ShellRsp) error
	Recv() (*_go.ShellReq, error)
	grpc.ServerStream
}

type UnimplementedMercuryServiceServer

type UnimplementedMercuryServiceServer struct {
}

UnimplementedMercuryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedMercuryServiceServer) Deploy

func (UnimplementedMercuryServiceServer) Event

func (UnimplementedMercuryServiceServer) Exec

func (UnimplementedMercuryServiceServer) Inspect

func (UnimplementedMercuryServiceServer) InspectPod

func (UnimplementedMercuryServiceServer) List

func (UnimplementedMercuryServiceServer) Log

func (UnimplementedMercuryServiceServer) LogStream

func (UnimplementedMercuryServiceServer) Remove

func (UnimplementedMercuryServiceServer) Shell

func (UnimplementedMercuryServiceServer) Watch

type UnsafeMercuryServiceServer

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

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

Jump to

Keyboard shortcuts

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