api

package
v0.0.0-...-9a30093 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: BSD-2-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_control_proto protoreflect.FileDescriptor

Functions

func RegisterCommandServer

func RegisterCommandServer(s *grpc.Server, srv CommandServer)

Types

type CommandClient

type CommandClient interface {
	GrpcRequestServer(ctx context.Context, in *StartServerRequest, opts ...grpc.CallOption) (*StartServerResponse, error)
}

CommandClient is the client API for Command service.

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

func NewCommandClient

func NewCommandClient(cc grpc.ClientConnInterface) CommandClient

type CommandServer

type CommandServer interface {
	GrpcRequestServer(context.Context, *StartServerRequest) (*StartServerResponse, error)
}

CommandServer is the server API for Command service.

type StartServerRequest

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

func (*StartServerRequest) Descriptor deprecated

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

Deprecated: Use StartServerRequest.ProtoReflect.Descriptor instead.

func (*StartServerRequest) ProtoMessage

func (*StartServerRequest) ProtoMessage()

func (*StartServerRequest) ProtoReflect

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

func (*StartServerRequest) Reset

func (x *StartServerRequest) Reset()

func (*StartServerRequest) String

func (x *StartServerRequest) String() string

type StartServerResponse

type StartServerResponse struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ListenPort int32  `protobuf:"varint,2,opt,name=listen_port,json=listenPort,proto3" json:"listen_port,omitempty"`
	// contains filtered or unexported fields
}

func (*StartServerResponse) Descriptor deprecated

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

Deprecated: Use StartServerResponse.ProtoReflect.Descriptor instead.

func (*StartServerResponse) GetId

func (x *StartServerResponse) GetId() string

func (*StartServerResponse) GetListenPort

func (x *StartServerResponse) GetListenPort() int32

func (*StartServerResponse) ProtoMessage

func (*StartServerResponse) ProtoMessage()

func (*StartServerResponse) ProtoReflect

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

func (*StartServerResponse) Reset

func (x *StartServerResponse) Reset()

func (*StartServerResponse) String

func (x *StartServerResponse) String() string

type UnimplementedCommandServer

type UnimplementedCommandServer struct {
}

UnimplementedCommandServer can be embedded to have forward compatible implementations.

func (*UnimplementedCommandServer) GrpcRequestServer

Jump to

Keyboard shortcuts

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