_gogrpc

package
v1.4.0-20240320110646-... 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_InspectPods_FullMethodName = "/mercury.MercuryService/InspectPods"
	MercuryService_Logs_FullMethodName        = "/mercury.MercuryService/Logs"
	MercuryService_LogStream_FullMethodName   = "/mercury.MercuryService/LogStream"
	MercuryService_Remove_FullMethodName      = "/mercury.MercuryService/Remove"
	MercuryService_List_FullMethodName        = "/mercury.MercuryService/List"
)

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: "InspectPods",
			Handler:    _MercuryService_InspectPods_Handler,
		},
		{
			MethodName: "Logs",
			Handler:    _MercuryService_Logs_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _MercuryService_Remove_Handler,
		},
		{
			MethodName: "List",
			Handler:    _MercuryService_List_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "LogStream",
			Handler:       _MercuryService_LogStream_Handler,
			ServerStreams: 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.DeployConfig, opts ...grpc.CallOption) (*_go.InspectRsp, error)
	Inspect(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.InspectRsp, error)
	InspectPods(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.PodListRsp, error)
	Logs(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.LogsRsp, error)
	LogStream(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (MercuryService_LogStreamClient, error)
	Remove(ctx context.Context, in *_go.NameReq, opts ...grpc.CallOption) (*_go.Empty, error)
	List(ctx context.Context, in *_go.Empty, opts ...grpc.CallOption) (*_go.ListRsp, 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.LogsRsp_Log, error)
	grpc.ClientStream
}

type MercuryService_LogStreamServer

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

type UnimplementedMercuryServiceServer

type UnimplementedMercuryServiceServer struct {
}

UnimplementedMercuryServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedMercuryServiceServer) Deploy

func (UnimplementedMercuryServiceServer) Inspect

func (UnimplementedMercuryServiceServer) InspectPods

func (UnimplementedMercuryServiceServer) List

func (UnimplementedMercuryServiceServer) LogStream

func (UnimplementedMercuryServiceServer) Logs

func (UnimplementedMercuryServiceServer) Remove

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