grpc

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_proto protoreflect.FileDescriptor

Functions

func RegisterQuMineServerServer

func RegisterQuMineServerServer(s *grpc.Server, srv QuMineServerServer)

Types

type LogStreamRequest

type LogStreamRequest struct {
	Lines int32 `protobuf:"varint,1,opt,name=lines,proto3" json:"lines,omitempty"`
	// contains filtered or unexported fields
}

func (*LogStreamRequest) Descriptor deprecated

func (*LogStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogStreamRequest.ProtoReflect.Descriptor instead.

func (*LogStreamRequest) GetLines

func (x *LogStreamRequest) GetLines() int32

func (*LogStreamRequest) ProtoMessage

func (*LogStreamRequest) ProtoMessage()

func (*LogStreamRequest) ProtoReflect

func (x *LogStreamRequest) ProtoReflect() protoreflect.Message

func (*LogStreamRequest) Reset

func (x *LogStreamRequest) Reset()

func (*LogStreamRequest) String

func (x *LogStreamRequest) String() string

type LogStreamResponse

type LogStreamResponse struct {
	Line string `protobuf:"bytes,1,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*LogStreamResponse) Descriptor deprecated

func (*LogStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogStreamResponse.ProtoReflect.Descriptor instead.

func (*LogStreamResponse) GetLine

func (x *LogStreamResponse) GetLine() string

func (*LogStreamResponse) ProtoMessage

func (*LogStreamResponse) ProtoMessage()

func (*LogStreamResponse) ProtoReflect

func (x *LogStreamResponse) ProtoReflect() protoreflect.Message

func (*LogStreamResponse) Reset

func (x *LogStreamResponse) Reset()

func (*LogStreamResponse) String

func (x *LogStreamResponse) String() string

type QuMineServerClient

type QuMineServerClient interface {
	StreamLogs(ctx context.Context, in *LogStreamRequest, opts ...grpc.CallOption) (QuMineServer_StreamLogsClient, error)
	SendCommand(ctx context.Context, in *SendCommandRequest, opts ...grpc.CallOption) (QuMineServer_SendCommandClient, error)
}

QuMineServerClient is the client API for QuMineServer service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type QuMineServerServer

type QuMineServerServer interface {
	StreamLogs(*LogStreamRequest, QuMineServer_StreamLogsServer) error
	SendCommand(*SendCommandRequest, QuMineServer_SendCommandServer) error
}

QuMineServerServer is the server API for QuMineServer service.

type QuMineServer_SendCommandClient

type QuMineServer_SendCommandClient interface {
	Recv() (*SendCommandResponse, error)
	grpc.ClientStream
}

type QuMineServer_SendCommandServer

type QuMineServer_SendCommandServer interface {
	Send(*SendCommandResponse) error
	grpc.ServerStream
}

type QuMineServer_StreamLogsClient

type QuMineServer_StreamLogsClient interface {
	Recv() (*LogStreamResponse, error)
	grpc.ClientStream
}

type QuMineServer_StreamLogsServer

type QuMineServer_StreamLogsServer interface {
	Send(*LogStreamResponse) error
	grpc.ServerStream
}

type SendCommandRequest

type SendCommandRequest struct {
	Line string `protobuf:"bytes,1,opt,name=line,proto3" json:"line,omitempty"`
	// contains filtered or unexported fields
}

func (*SendCommandRequest) Descriptor deprecated

func (*SendCommandRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendCommandRequest.ProtoReflect.Descriptor instead.

func (*SendCommandRequest) GetLine

func (x *SendCommandRequest) GetLine() string

func (*SendCommandRequest) ProtoMessage

func (*SendCommandRequest) ProtoMessage()

func (*SendCommandRequest) ProtoReflect

func (x *SendCommandRequest) ProtoReflect() protoreflect.Message

func (*SendCommandRequest) Reset

func (x *SendCommandRequest) Reset()

func (*SendCommandRequest) String

func (x *SendCommandRequest) String() string

type SendCommandResponse

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

func (*SendCommandResponse) Descriptor deprecated

func (*SendCommandResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendCommandResponse.ProtoReflect.Descriptor instead.

func (*SendCommandResponse) ProtoMessage

func (*SendCommandResponse) ProtoMessage()

func (*SendCommandResponse) ProtoReflect

func (x *SendCommandResponse) ProtoReflect() protoreflect.Message

func (*SendCommandResponse) Reset

func (x *SendCommandResponse) Reset()

func (*SendCommandResponse) String

func (x *SendCommandResponse) String() string

type UnimplementedQuMineServerServer

type UnimplementedQuMineServerServer struct {
}

UnimplementedQuMineServerServer can be embedded to have forward compatible implementations.

func (*UnimplementedQuMineServerServer) SendCommand

func (*UnimplementedQuMineServerServer) StreamLogs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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