v2ray-core: github.com/v2ray/v2ray-core/app/proxyman/command Index | Files

package command

import "github.com/v2ray/v2ray-core/app/proxyman/command"

Index

Package Files

command.go command.pb.go command_grpc.pb.go doc.go errors.generated.go

Variables

var File_app_proxyman_command_command_proto protoreflect.FileDescriptor

func RegisterHandlerServiceServer Uses

func RegisterHandlerServiceServer(s *grpc.Server, srv HandlerServiceServer)

type AddInboundRequest Uses

type AddInboundRequest struct {
    Inbound *core.InboundHandlerConfig `protobuf:"bytes,1,opt,name=inbound,proto3" json:"inbound,omitempty"`
    // contains filtered or unexported fields
}

func (*AddInboundRequest) Descriptor Uses

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

Deprecated: Use AddInboundRequest.ProtoReflect.Descriptor instead.

func (*AddInboundRequest) GetInbound Uses

func (x *AddInboundRequest) GetInbound() *core.InboundHandlerConfig

func (*AddInboundRequest) ProtoMessage Uses

func (*AddInboundRequest) ProtoMessage()

func (*AddInboundRequest) ProtoReflect Uses

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

func (*AddInboundRequest) Reset Uses

func (x *AddInboundRequest) Reset()

func (*AddInboundRequest) String Uses

func (x *AddInboundRequest) String() string

type AddInboundResponse Uses

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

func (*AddInboundResponse) Descriptor Uses

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

Deprecated: Use AddInboundResponse.ProtoReflect.Descriptor instead.

func (*AddInboundResponse) ProtoMessage Uses

func (*AddInboundResponse) ProtoMessage()

func (*AddInboundResponse) ProtoReflect Uses

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

func (*AddInboundResponse) Reset Uses

func (x *AddInboundResponse) Reset()

func (*AddInboundResponse) String Uses

func (x *AddInboundResponse) String() string

type AddOutboundRequest Uses

type AddOutboundRequest struct {
    Outbound *core.OutboundHandlerConfig `protobuf:"bytes,1,opt,name=outbound,proto3" json:"outbound,omitempty"`
    // contains filtered or unexported fields
}

func (*AddOutboundRequest) Descriptor Uses

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

Deprecated: Use AddOutboundRequest.ProtoReflect.Descriptor instead.

func (*AddOutboundRequest) GetOutbound Uses

func (x *AddOutboundRequest) GetOutbound() *core.OutboundHandlerConfig

func (*AddOutboundRequest) ProtoMessage Uses

func (*AddOutboundRequest) ProtoMessage()

func (*AddOutboundRequest) ProtoReflect Uses

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

func (*AddOutboundRequest) Reset Uses

func (x *AddOutboundRequest) Reset()

func (*AddOutboundRequest) String Uses

func (x *AddOutboundRequest) String() string

type AddOutboundResponse Uses

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

func (*AddOutboundResponse) Descriptor Uses

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

Deprecated: Use AddOutboundResponse.ProtoReflect.Descriptor instead.

func (*AddOutboundResponse) ProtoMessage Uses

func (*AddOutboundResponse) ProtoMessage()

func (*AddOutboundResponse) ProtoReflect Uses

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

func (*AddOutboundResponse) Reset Uses

func (x *AddOutboundResponse) Reset()

func (*AddOutboundResponse) String Uses

func (x *AddOutboundResponse) String() string

type AddUserOperation Uses

type AddUserOperation struct {
    User *protocol.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
    // contains filtered or unexported fields
}

func (*AddUserOperation) ApplyInbound Uses

func (op *AddUserOperation) ApplyInbound(ctx context.Context, handler inbound.Handler) error

ApplyInbound implements InboundOperation.

func (*AddUserOperation) Descriptor Uses

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

Deprecated: Use AddUserOperation.ProtoReflect.Descriptor instead.

func (*AddUserOperation) GetUser Uses

func (x *AddUserOperation) GetUser() *protocol.User

func (*AddUserOperation) ProtoMessage Uses

func (*AddUserOperation) ProtoMessage()

func (*AddUserOperation) ProtoReflect Uses

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

func (*AddUserOperation) Reset Uses

func (x *AddUserOperation) Reset()

func (*AddUserOperation) String Uses

func (x *AddUserOperation) String() string

type AlterInboundRequest Uses

type AlterInboundRequest struct {
    Tag       string               `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
    Operation *serial.TypedMessage `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
    // contains filtered or unexported fields
}

func (*AlterInboundRequest) Descriptor Uses

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

Deprecated: Use AlterInboundRequest.ProtoReflect.Descriptor instead.

func (*AlterInboundRequest) GetOperation Uses

func (x *AlterInboundRequest) GetOperation() *serial.TypedMessage

func (*AlterInboundRequest) GetTag Uses

func (x *AlterInboundRequest) GetTag() string

func (*AlterInboundRequest) ProtoMessage Uses

func (*AlterInboundRequest) ProtoMessage()

func (*AlterInboundRequest) ProtoReflect Uses

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

func (*AlterInboundRequest) Reset Uses

func (x *AlterInboundRequest) Reset()

func (*AlterInboundRequest) String Uses

func (x *AlterInboundRequest) String() string

type AlterInboundResponse Uses

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

func (*AlterInboundResponse) Descriptor Uses

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

Deprecated: Use AlterInboundResponse.ProtoReflect.Descriptor instead.

func (*AlterInboundResponse) ProtoMessage Uses

func (*AlterInboundResponse) ProtoMessage()

func (*AlterInboundResponse) ProtoReflect Uses

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

func (*AlterInboundResponse) Reset Uses

func (x *AlterInboundResponse) Reset()

func (*AlterInboundResponse) String Uses

func (x *AlterInboundResponse) String() string

type AlterOutboundRequest Uses

type AlterOutboundRequest struct {
    Tag       string               `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
    Operation *serial.TypedMessage `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
    // contains filtered or unexported fields
}

func (*AlterOutboundRequest) Descriptor Uses

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

Deprecated: Use AlterOutboundRequest.ProtoReflect.Descriptor instead.

func (*AlterOutboundRequest) GetOperation Uses

func (x *AlterOutboundRequest) GetOperation() *serial.TypedMessage

func (*AlterOutboundRequest) GetTag Uses

func (x *AlterOutboundRequest) GetTag() string

func (*AlterOutboundRequest) ProtoMessage Uses

func (*AlterOutboundRequest) ProtoMessage()

func (*AlterOutboundRequest) ProtoReflect Uses

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

func (*AlterOutboundRequest) Reset Uses

func (x *AlterOutboundRequest) Reset()

func (*AlterOutboundRequest) String Uses

func (x *AlterOutboundRequest) String() string

type AlterOutboundResponse Uses

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

func (*AlterOutboundResponse) Descriptor Uses

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

Deprecated: Use AlterOutboundResponse.ProtoReflect.Descriptor instead.

func (*AlterOutboundResponse) ProtoMessage Uses

func (*AlterOutboundResponse) ProtoMessage()

func (*AlterOutboundResponse) ProtoReflect Uses

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

func (*AlterOutboundResponse) Reset Uses

func (x *AlterOutboundResponse) Reset()

func (*AlterOutboundResponse) String Uses

func (x *AlterOutboundResponse) String() string

type Config Uses

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

func (*Config) Descriptor Uses

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

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

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type HandlerServiceClient Uses

type HandlerServiceClient interface {
    AddInbound(ctx context.Context, in *AddInboundRequest, opts ...grpc.CallOption) (*AddInboundResponse, error)
    RemoveInbound(ctx context.Context, in *RemoveInboundRequest, opts ...grpc.CallOption) (*RemoveInboundResponse, error)
    AlterInbound(ctx context.Context, in *AlterInboundRequest, opts ...grpc.CallOption) (*AlterInboundResponse, error)
    AddOutbound(ctx context.Context, in *AddOutboundRequest, opts ...grpc.CallOption) (*AddOutboundResponse, error)
    RemoveOutbound(ctx context.Context, in *RemoveOutboundRequest, opts ...grpc.CallOption) (*RemoveOutboundResponse, error)
    AlterOutbound(ctx context.Context, in *AlterOutboundRequest, opts ...grpc.CallOption) (*AlterOutboundResponse, error)
}

HandlerServiceClient is the client API for HandlerService 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 NewHandlerServiceClient Uses

func NewHandlerServiceClient(cc grpc.ClientConnInterface) HandlerServiceClient

type HandlerServiceServer Uses

type HandlerServiceServer interface {
    AddInbound(context.Context, *AddInboundRequest) (*AddInboundResponse, error)
    RemoveInbound(context.Context, *RemoveInboundRequest) (*RemoveInboundResponse, error)
    AlterInbound(context.Context, *AlterInboundRequest) (*AlterInboundResponse, error)
    AddOutbound(context.Context, *AddOutboundRequest) (*AddOutboundResponse, error)
    RemoveOutbound(context.Context, *RemoveOutboundRequest) (*RemoveOutboundResponse, error)
    AlterOutbound(context.Context, *AlterOutboundRequest) (*AlterOutboundResponse, error)
    // contains filtered or unexported methods
}

HandlerServiceServer is the server API for HandlerService service. All implementations must embed UnimplementedHandlerServiceServer for forward compatibility

type InboundOperation Uses

type InboundOperation interface {
    // ApplyInbound applies this operation to the given inbound handler.
    ApplyInbound(context.Context, inbound.Handler) error
}

InboundOperation is the interface for operations that applies to inbound handlers.

type OutboundOperation Uses

type OutboundOperation interface {
    // ApplyOutbound applies this operation to the given outbound handler.
    ApplyOutbound(context.Context, outbound.Handler) error
}

OutboundOperation is the interface for operations that applies to outbound handlers.

type RemoveInboundRequest Uses

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

func (*RemoveInboundRequest) Descriptor Uses

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

Deprecated: Use RemoveInboundRequest.ProtoReflect.Descriptor instead.

func (*RemoveInboundRequest) GetTag Uses

func (x *RemoveInboundRequest) GetTag() string

func (*RemoveInboundRequest) ProtoMessage Uses

func (*RemoveInboundRequest) ProtoMessage()

func (*RemoveInboundRequest) ProtoReflect Uses

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

func (*RemoveInboundRequest) Reset Uses

func (x *RemoveInboundRequest) Reset()

func (*RemoveInboundRequest) String Uses

func (x *RemoveInboundRequest) String() string

type RemoveInboundResponse Uses

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

func (*RemoveInboundResponse) Descriptor Uses

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

Deprecated: Use RemoveInboundResponse.ProtoReflect.Descriptor instead.

func (*RemoveInboundResponse) ProtoMessage Uses

func (*RemoveInboundResponse) ProtoMessage()

func (*RemoveInboundResponse) ProtoReflect Uses

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

func (*RemoveInboundResponse) Reset Uses

func (x *RemoveInboundResponse) Reset()

func (*RemoveInboundResponse) String Uses

func (x *RemoveInboundResponse) String() string

type RemoveOutboundRequest Uses

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

func (*RemoveOutboundRequest) Descriptor Uses

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

Deprecated: Use RemoveOutboundRequest.ProtoReflect.Descriptor instead.

func (*RemoveOutboundRequest) GetTag Uses

func (x *RemoveOutboundRequest) GetTag() string

func (*RemoveOutboundRequest) ProtoMessage Uses

func (*RemoveOutboundRequest) ProtoMessage()

func (*RemoveOutboundRequest) ProtoReflect Uses

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

func (*RemoveOutboundRequest) Reset Uses

func (x *RemoveOutboundRequest) Reset()

func (*RemoveOutboundRequest) String Uses

func (x *RemoveOutboundRequest) String() string

type RemoveOutboundResponse Uses

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

func (*RemoveOutboundResponse) Descriptor Uses

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

Deprecated: Use RemoveOutboundResponse.ProtoReflect.Descriptor instead.

func (*RemoveOutboundResponse) ProtoMessage Uses

func (*RemoveOutboundResponse) ProtoMessage()

func (*RemoveOutboundResponse) ProtoReflect Uses

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

func (*RemoveOutboundResponse) Reset Uses

func (x *RemoveOutboundResponse) Reset()

func (*RemoveOutboundResponse) String Uses

func (x *RemoveOutboundResponse) String() string

type RemoveUserOperation Uses

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

func (*RemoveUserOperation) ApplyInbound Uses

func (op *RemoveUserOperation) ApplyInbound(ctx context.Context, handler inbound.Handler) error

ApplyInbound implements InboundOperation.

func (*RemoveUserOperation) Descriptor Uses

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

Deprecated: Use RemoveUserOperation.ProtoReflect.Descriptor instead.

func (*RemoveUserOperation) GetEmail Uses

func (x *RemoveUserOperation) GetEmail() string

func (*RemoveUserOperation) ProtoMessage Uses

func (*RemoveUserOperation) ProtoMessage()

func (*RemoveUserOperation) ProtoReflect Uses

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

func (*RemoveUserOperation) Reset Uses

func (x *RemoveUserOperation) Reset()

func (*RemoveUserOperation) String Uses

func (x *RemoveUserOperation) String() string

type UnimplementedHandlerServiceServer Uses

type UnimplementedHandlerServiceServer struct {
}

UnimplementedHandlerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHandlerServiceServer) AddInbound Uses

func (UnimplementedHandlerServiceServer) AddInbound(context.Context, *AddInboundRequest) (*AddInboundResponse, error)

func (UnimplementedHandlerServiceServer) AddOutbound Uses

func (UnimplementedHandlerServiceServer) AddOutbound(context.Context, *AddOutboundRequest) (*AddOutboundResponse, error)

func (UnimplementedHandlerServiceServer) AlterInbound Uses

func (UnimplementedHandlerServiceServer) AlterInbound(context.Context, *AlterInboundRequest) (*AlterInboundResponse, error)

func (UnimplementedHandlerServiceServer) AlterOutbound Uses

func (UnimplementedHandlerServiceServer) AlterOutbound(context.Context, *AlterOutboundRequest) (*AlterOutboundResponse, error)

func (UnimplementedHandlerServiceServer) RemoveInbound Uses

func (UnimplementedHandlerServiceServer) RemoveInbound(context.Context, *RemoveInboundRequest) (*RemoveInboundResponse, error)

func (UnimplementedHandlerServiceServer) RemoveOutbound Uses

func (UnimplementedHandlerServiceServer) RemoveOutbound(context.Context, *RemoveOutboundRequest) (*RemoveOutboundResponse, error)

type UnsafeHandlerServiceServer Uses

type UnsafeHandlerServiceServer interface {
    // contains filtered or unexported methods
}

UnsafeHandlerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HandlerServiceServer will result in compilation errors.

Package command imports 17 packages (graph). Updated 2020-10-28. Refresh now. Tools for package owners.