Documentation ¶
Index ¶
- func RegisterHandlerServiceServer(s *grpc.Server, srv HandlerServiceServer)
- type AddInboundRequest
- type AddInboundResponse
- type AddOutboundRequest
- type AddOutboundResponse
- type AddUserOperation
- func (op *AddUserOperation) ApplyInbound(ctx context.Context, handler core.InboundHandler) error
- func (*AddUserOperation) Descriptor() ([]byte, []int)
- func (m *AddUserOperation) GetUser() *v2ray_core_common_protocol.User
- func (*AddUserOperation) ProtoMessage()
- func (m *AddUserOperation) Reset()
- func (m *AddUserOperation) String() string
- type AlterInboundRequest
- func (*AlterInboundRequest) Descriptor() ([]byte, []int)
- func (m *AlterInboundRequest) GetOperation() *v2ray_core_common_serial.TypedMessage
- func (m *AlterInboundRequest) GetTag() string
- func (*AlterInboundRequest) ProtoMessage()
- func (m *AlterInboundRequest) Reset()
- func (m *AlterInboundRequest) String() string
- type AlterInboundResponse
- type AlterOutboundRequest
- func (*AlterOutboundRequest) Descriptor() ([]byte, []int)
- func (m *AlterOutboundRequest) GetOperation() *v2ray_core_common_serial.TypedMessage
- func (m *AlterOutboundRequest) GetTag() string
- func (*AlterOutboundRequest) ProtoMessage()
- func (m *AlterOutboundRequest) Reset()
- func (m *AlterOutboundRequest) String() string
- type AlterOutboundResponse
- type Config
- type HandlerServiceClient
- type HandlerServiceServer
- type InboundOperation
- type OutboundOperation
- type RemoveInboundRequest
- type RemoveInboundResponse
- type RemoveOutboundRequest
- type RemoveOutboundResponse
- type RemoveUserOperation
- func (op *RemoveUserOperation) ApplyInbound(ctx context.Context, handler core.InboundHandler) error
- func (*RemoveUserOperation) Descriptor() ([]byte, []int)
- func (m *RemoveUserOperation) GetEmail() string
- func (*RemoveUserOperation) ProtoMessage()
- func (m *RemoveUserOperation) Reset()
- func (m *RemoveUserOperation) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlerServiceServer ¶
func RegisterHandlerServiceServer(s *grpc.Server, srv HandlerServiceServer)
Types ¶
type AddInboundRequest ¶
type AddInboundRequest struct {
Inbound *v2ray_core.InboundHandlerConfig `protobuf:"bytes,1,opt,name=inbound" json:"inbound,omitempty"`
}
func (*AddInboundRequest) Descriptor ¶
func (*AddInboundRequest) Descriptor() ([]byte, []int)
func (*AddInboundRequest) GetInbound ¶
func (m *AddInboundRequest) GetInbound() *v2ray_core.InboundHandlerConfig
func (*AddInboundRequest) ProtoMessage ¶
func (*AddInboundRequest) ProtoMessage()
func (*AddInboundRequest) Reset ¶
func (m *AddInboundRequest) Reset()
func (*AddInboundRequest) String ¶
func (m *AddInboundRequest) String() string
type AddInboundResponse ¶
type AddInboundResponse struct { }
func (*AddInboundResponse) Descriptor ¶
func (*AddInboundResponse) Descriptor() ([]byte, []int)
func (*AddInboundResponse) ProtoMessage ¶
func (*AddInboundResponse) ProtoMessage()
func (*AddInboundResponse) Reset ¶
func (m *AddInboundResponse) Reset()
func (*AddInboundResponse) String ¶
func (m *AddInboundResponse) String() string
type AddOutboundRequest ¶
type AddOutboundRequest struct {
Outbound *v2ray_core.OutboundHandlerConfig `protobuf:"bytes,1,opt,name=outbound" json:"outbound,omitempty"`
}
func (*AddOutboundRequest) Descriptor ¶
func (*AddOutboundRequest) Descriptor() ([]byte, []int)
func (*AddOutboundRequest) GetOutbound ¶
func (m *AddOutboundRequest) GetOutbound() *v2ray_core.OutboundHandlerConfig
func (*AddOutboundRequest) ProtoMessage ¶
func (*AddOutboundRequest) ProtoMessage()
func (*AddOutboundRequest) Reset ¶
func (m *AddOutboundRequest) Reset()
func (*AddOutboundRequest) String ¶
func (m *AddOutboundRequest) String() string
type AddOutboundResponse ¶
type AddOutboundResponse struct { }
func (*AddOutboundResponse) Descriptor ¶
func (*AddOutboundResponse) Descriptor() ([]byte, []int)
func (*AddOutboundResponse) ProtoMessage ¶
func (*AddOutboundResponse) ProtoMessage()
func (*AddOutboundResponse) Reset ¶
func (m *AddOutboundResponse) Reset()
func (*AddOutboundResponse) String ¶
func (m *AddOutboundResponse) String() string
type AddUserOperation ¶
type AddUserOperation struct {
User *v2ray_core_common_protocol.User `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"`
}
func (*AddUserOperation) ApplyInbound ¶
func (op *AddUserOperation) ApplyInbound(ctx context.Context, handler core.InboundHandler) error
ApplyInbound implements InboundOperation.
func (*AddUserOperation) Descriptor ¶
func (*AddUserOperation) Descriptor() ([]byte, []int)
func (*AddUserOperation) GetUser ¶
func (m *AddUserOperation) GetUser() *v2ray_core_common_protocol.User
func (*AddUserOperation) ProtoMessage ¶
func (*AddUserOperation) ProtoMessage()
func (*AddUserOperation) Reset ¶
func (m *AddUserOperation) Reset()
func (*AddUserOperation) String ¶
func (m *AddUserOperation) String() string
type AlterInboundRequest ¶
type AlterInboundRequest struct { Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` Operation *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=operation" json:"operation,omitempty"` }
func (*AlterInboundRequest) Descriptor ¶
func (*AlterInboundRequest) Descriptor() ([]byte, []int)
func (*AlterInboundRequest) GetOperation ¶
func (m *AlterInboundRequest) GetOperation() *v2ray_core_common_serial.TypedMessage
func (*AlterInboundRequest) GetTag ¶
func (m *AlterInboundRequest) GetTag() string
func (*AlterInboundRequest) ProtoMessage ¶
func (*AlterInboundRequest) ProtoMessage()
func (*AlterInboundRequest) Reset ¶
func (m *AlterInboundRequest) Reset()
func (*AlterInboundRequest) String ¶
func (m *AlterInboundRequest) String() string
type AlterInboundResponse ¶
type AlterInboundResponse struct { }
func (*AlterInboundResponse) Descriptor ¶
func (*AlterInboundResponse) Descriptor() ([]byte, []int)
func (*AlterInboundResponse) ProtoMessage ¶
func (*AlterInboundResponse) ProtoMessage()
func (*AlterInboundResponse) Reset ¶
func (m *AlterInboundResponse) Reset()
func (*AlterInboundResponse) String ¶
func (m *AlterInboundResponse) String() string
type AlterOutboundRequest ¶
type AlterOutboundRequest struct { Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` Operation *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,opt,name=operation" json:"operation,omitempty"` }
func (*AlterOutboundRequest) Descriptor ¶
func (*AlterOutboundRequest) Descriptor() ([]byte, []int)
func (*AlterOutboundRequest) GetOperation ¶
func (m *AlterOutboundRequest) GetOperation() *v2ray_core_common_serial.TypedMessage
func (*AlterOutboundRequest) GetTag ¶
func (m *AlterOutboundRequest) GetTag() string
func (*AlterOutboundRequest) ProtoMessage ¶
func (*AlterOutboundRequest) ProtoMessage()
func (*AlterOutboundRequest) Reset ¶
func (m *AlterOutboundRequest) Reset()
func (*AlterOutboundRequest) String ¶
func (m *AlterOutboundRequest) String() string
type AlterOutboundResponse ¶
type AlterOutboundResponse struct { }
func (*AlterOutboundResponse) Descriptor ¶
func (*AlterOutboundResponse) Descriptor() ([]byte, []int)
func (*AlterOutboundResponse) ProtoMessage ¶
func (*AlterOutboundResponse) ProtoMessage()
func (*AlterOutboundResponse) Reset ¶
func (m *AlterOutboundResponse) Reset()
func (*AlterOutboundResponse) String ¶
func (m *AlterOutboundResponse) String() string
type Config ¶
type Config struct { }
type HandlerServiceClient ¶
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) }
func NewHandlerServiceClient ¶
func NewHandlerServiceClient(cc *grpc.ClientConn) HandlerServiceClient
type HandlerServiceServer ¶
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) }
type InboundOperation ¶
type InboundOperation interface { // ApplyInbound applies this operation to the given inbound handler. ApplyInbound(context.Context, core.InboundHandler) error }
InboundOperation is the interface for operations that applies to inbound handlers.
type OutboundOperation ¶
type OutboundOperation interface { // ApplyOutbound applies this operation to the given outbound handler. ApplyOutbound(context.Context, core.OutboundHandler) error }
OutboundOperation is the interface for operations that applies to outbound handlers.
type RemoveInboundRequest ¶
type RemoveInboundRequest struct {
Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
}
func (*RemoveInboundRequest) Descriptor ¶
func (*RemoveInboundRequest) Descriptor() ([]byte, []int)
func (*RemoveInboundRequest) GetTag ¶
func (m *RemoveInboundRequest) GetTag() string
func (*RemoveInboundRequest) ProtoMessage ¶
func (*RemoveInboundRequest) ProtoMessage()
func (*RemoveInboundRequest) Reset ¶
func (m *RemoveInboundRequest) Reset()
func (*RemoveInboundRequest) String ¶
func (m *RemoveInboundRequest) String() string
type RemoveInboundResponse ¶
type RemoveInboundResponse struct { }
func (*RemoveInboundResponse) Descriptor ¶
func (*RemoveInboundResponse) Descriptor() ([]byte, []int)
func (*RemoveInboundResponse) ProtoMessage ¶
func (*RemoveInboundResponse) ProtoMessage()
func (*RemoveInboundResponse) Reset ¶
func (m *RemoveInboundResponse) Reset()
func (*RemoveInboundResponse) String ¶
func (m *RemoveInboundResponse) String() string
type RemoveOutboundRequest ¶
type RemoveOutboundRequest struct {
Tag string `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
}
func (*RemoveOutboundRequest) Descriptor ¶
func (*RemoveOutboundRequest) Descriptor() ([]byte, []int)
func (*RemoveOutboundRequest) GetTag ¶
func (m *RemoveOutboundRequest) GetTag() string
func (*RemoveOutboundRequest) ProtoMessage ¶
func (*RemoveOutboundRequest) ProtoMessage()
func (*RemoveOutboundRequest) Reset ¶
func (m *RemoveOutboundRequest) Reset()
func (*RemoveOutboundRequest) String ¶
func (m *RemoveOutboundRequest) String() string
type RemoveOutboundResponse ¶
type RemoveOutboundResponse struct { }
func (*RemoveOutboundResponse) Descriptor ¶
func (*RemoveOutboundResponse) Descriptor() ([]byte, []int)
func (*RemoveOutboundResponse) ProtoMessage ¶
func (*RemoveOutboundResponse) ProtoMessage()
func (*RemoveOutboundResponse) Reset ¶
func (m *RemoveOutboundResponse) Reset()
func (*RemoveOutboundResponse) String ¶
func (m *RemoveOutboundResponse) String() string
type RemoveUserOperation ¶
type RemoveUserOperation struct {
Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"`
}
func (*RemoveUserOperation) ApplyInbound ¶
func (op *RemoveUserOperation) ApplyInbound(ctx context.Context, handler core.InboundHandler) error
ApplyInbound implements InboundOperation.
func (*RemoveUserOperation) Descriptor ¶
func (*RemoveUserOperation) Descriptor() ([]byte, []int)
func (*RemoveUserOperation) GetEmail ¶
func (m *RemoveUserOperation) GetEmail() string
func (*RemoveUserOperation) ProtoMessage ¶
func (*RemoveUserOperation) ProtoMessage()
func (*RemoveUserOperation) Reset ¶
func (m *RemoveUserOperation) Reset()
func (*RemoveUserOperation) String ¶
func (m *RemoveUserOperation) String() string
Click to show internal directories.
Click to hide internal directories.