pbs

package
v0.0.0-...-5ec896d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_cmdService_proto protoreflect.FileDescriptor

Functions

func RegisterCmdServiceServer

func RegisterCmdServiceServer(s *grpc.Server, srv CmdServiceServer)

Types

type Address

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

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type CmdServiceClient

type CmdServiceClient interface {
	ShowWallet(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	StartVpn(ctx context.Context, in *VpnSrvParam, opts ...grpc.CallOption) (*CommonResponse, error)
	StopVpn(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CommonResponse, error)
	ShowUserData(ctx context.Context, in *VpnSrvParam, opts ...grpc.CallOption) (*CommonResponse, error)
	ShowSubpool(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*CommonResponse, error)
}

CmdServiceClient is the client API for CmdService service.

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

func NewCmdServiceClient

func NewCmdServiceClient(cc grpc.ClientConnInterface) CmdServiceClient

type CmdServiceServer

type CmdServiceServer interface {
	ShowWallet(context.Context, *EmptyRequest) (*CommonResponse, error)
	StartVpn(context.Context, *VpnSrvParam) (*CommonResponse, error)
	StopVpn(context.Context, *EmptyRequest) (*CommonResponse, error)
}

CmdServiceServer is the server API for CmdService service.

type CommonResponse

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

func (*CommonResponse) Descriptor deprecated

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

Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.

func (*CommonResponse) GetMsg

func (x *CommonResponse) GetMsg() string

func (*CommonResponse) ProtoMessage

func (*CommonResponse) ProtoMessage()

func (*CommonResponse) ProtoReflect

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

func (*CommonResponse) Reset

func (x *CommonResponse) Reset()

func (*CommonResponse) String

func (x *CommonResponse) String() string

type EmptyRequest

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

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

type LogLevel

type LogLevel struct {
	Module string `protobuf:"bytes,1,opt,name=Module,proto3" json:"Module,omitempty"`
	Level  int32  `protobuf:"varint,2,opt,name=Level,proto3" json:"Level,omitempty"`
	// contains filtered or unexported fields
}

func (*LogLevel) Descriptor deprecated

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

Deprecated: Use LogLevel.ProtoReflect.Descriptor instead.

func (*LogLevel) GetLevel

func (x *LogLevel) GetLevel() int32

func (*LogLevel) GetModule

func (x *LogLevel) GetModule() string

func (*LogLevel) ProtoMessage

func (*LogLevel) ProtoMessage()

func (*LogLevel) ProtoReflect

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

func (*LogLevel) Reset

func (x *LogLevel) Reset()

func (*LogLevel) String

func (x *LogLevel) String() string

type UnimplementedCmdServiceServer

type UnimplementedCmdServiceServer struct {
}

UnimplementedCmdServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCmdServiceServer) ShowSubpool

func (*UnimplementedCmdServiceServer) ShowUserData

func (*UnimplementedCmdServiceServer) ShowWallet

func (*UnimplementedCmdServiceServer) StartVpn

func (*UnimplementedCmdServiceServer) StopVpn

type VpnSrvParam

type VpnSrvParam struct {
	Pool  string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
	Miner string `protobuf:"bytes,2,opt,name=miner,proto3" json:"miner,omitempty"`
	// contains filtered or unexported fields
}

func (*VpnSrvParam) Descriptor deprecated

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

Deprecated: Use VpnSrvParam.ProtoReflect.Descriptor instead.

func (*VpnSrvParam) GetMiner

func (x *VpnSrvParam) GetMiner() string

func (*VpnSrvParam) GetPool

func (x *VpnSrvParam) GetPool() string

func (*VpnSrvParam) ProtoMessage

func (*VpnSrvParam) ProtoMessage()

func (*VpnSrvParam) ProtoReflect

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

func (*VpnSrvParam) Reset

func (x *VpnSrvParam) Reset()

func (*VpnSrvParam) String

func (x *VpnSrvParam) String() string

Jump to

Keyboard shortcuts

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