Documentation ¶
Index ¶
- Variables
- func RegisterCmdServiceServer(s *grpc.Server, srv CmdServiceServer)
- type Address
- type CmdServiceClient
- type CmdServiceServer
- type CommonResponse
- type EmptyRequest
- type LogLevel
- type UnimplementedCmdServiceServer
- func (*UnimplementedCmdServiceServer) ShowSubpool(context.Context, *EmptyRequest) (*CommonResponse, error)
- func (*UnimplementedCmdServiceServer) ShowUserData(context.Context, *VpnSrvParam) (*CommonResponse, error)
- func (*UnimplementedCmdServiceServer) ShowWallet(context.Context, *EmptyRequest) (*CommonResponse, error)
- func (*UnimplementedCmdServiceServer) StartVpn(context.Context, *VpnSrvParam) (*CommonResponse, error)
- func (*UnimplementedCmdServiceServer) StopVpn(context.Context, *EmptyRequest) (*CommonResponse, error)
- type VpnSrvParam
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) GetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*LogLevel) ProtoMessage()
func (*LogLevel) ProtoReflect ¶
func (x *LogLevel) ProtoReflect() protoreflect.Message
type UnimplementedCmdServiceServer ¶
type UnimplementedCmdServiceServer struct { }
UnimplementedCmdServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCmdServiceServer) ShowSubpool ¶
func (*UnimplementedCmdServiceServer) ShowSubpool(context.Context, *EmptyRequest) (*CommonResponse, error)
func (*UnimplementedCmdServiceServer) ShowUserData ¶
func (*UnimplementedCmdServiceServer) ShowUserData(context.Context, *VpnSrvParam) (*CommonResponse, error)
func (*UnimplementedCmdServiceServer) ShowWallet ¶
func (*UnimplementedCmdServiceServer) ShowWallet(context.Context, *EmptyRequest) (*CommonResponse, error)
func (*UnimplementedCmdServiceServer) StartVpn ¶
func (*UnimplementedCmdServiceServer) StartVpn(context.Context, *VpnSrvParam) (*CommonResponse, error)
func (*UnimplementedCmdServiceServer) StopVpn ¶
func (*UnimplementedCmdServiceServer) StopVpn(context.Context, *EmptyRequest) (*CommonResponse, error)
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
Click to show internal directories.
Click to hide internal directories.