_gogrpc

package
v1.5.1-20240411232706-... 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_List_FullMethodName      = "/mercury.MercuryService/List"
	MercuryService_Remove_FullMethodName    = "/mercury.MercuryService/Remove"
	MercuryService_Log_FullMethodName       = "/mercury.MercuryService/Log"
	MercuryService_Exec_FullMethodName      = "/mercury.MercuryService/Exec"
	MercuryService_Event_FullMethodName     = "/mercury.MercuryService/Event"
	MercuryService_Watch_FullMethodName     = "/mercury.MercuryService/Watch"
	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: "List",
			Handler:    _MercuryService_List_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _MercuryService_Remove_Handler,
		},
		{
			MethodName: "Log",
			Handler:    _MercuryService_Log_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _MercuryService_Exec_Handler,
		},
		{
			MethodName: "Event",
			Handler:    _MercuryService_Event_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Watch",
			Handler:       _MercuryService_Watch_Handler,
			ServerStreams: true,
		},
		{
			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)
	List(ctx context.Context, in *_go.ListReq, opts ...grpc.CallOption) (*_go.ListRsp, error)
	Remove(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.Empty, 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)
	Event(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.EventListRsp, error)
	Watch(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (grpc.ServerStreamingClient[_go.WatchRsp], error)
	LogStream(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (grpc.ServerStreamingClient[_go.LogRsp_Log], error)
	Shell(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[_go.ShellReq, _go.ShellRsp], 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 = grpc.ServerStreamingClient[_go.LogRsp_Log]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MercuryService_LogStreamServer

type MercuryService_LogStreamServer = grpc.ServerStreamingServer[_go.LogRsp_Log]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MercuryService_ShellClient

type MercuryService_ShellClient = grpc.BidiStreamingClient[_go.ShellReq, _go.ShellRsp]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MercuryService_ShellServer

type MercuryService_ShellServer = grpc.BidiStreamingServer[_go.ShellReq, _go.ShellRsp]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MercuryService_WatchClient

type MercuryService_WatchClient = grpc.ServerStreamingClient[_go.WatchRsp]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type MercuryService_WatchServer

type MercuryService_WatchServer = grpc.ServerStreamingServer[_go.WatchRsp]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type UnimplementedMercuryServiceServer

type UnimplementedMercuryServiceServer struct{}

UnimplementedMercuryServiceServer should 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 (UnimplementedMercuryServiceServer) Deploy

func (UnimplementedMercuryServiceServer) Event

func (UnimplementedMercuryServiceServer) Exec

func (UnimplementedMercuryServiceServer) Inspect

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