Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_app_commander_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Commander ¶
Commander is a V2Ray feature that provides gRPC methods to external clients.
func NewCommander ¶
NewCommander creates a new Commander based on the given config.
type Config ¶
type Config struct { // Tag of the outbound handler that handles grpc connections. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` // Services that supported by this server. All services must implement Service // interface. Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
Config is the settings for Commander.
func (*Config) Descriptor
deprecated
func (*Config) GetService ¶
func (x *Config) GetService() []*serial.TypedMessage
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Outbound ¶
type Outbound struct {
// contains filtered or unexported fields
}
Outbound is a outbound.Handler that handles gRPC connections.
type OutboundListener ¶
type OutboundListener struct {
// contains filtered or unexported fields
}
OutboundListener is a net.Listener for listening gRPC connections.
func (*OutboundListener) Accept ¶
func (l *OutboundListener) Accept() (net.Conn, error)
Accept implements net.Listener.
func (*OutboundListener) Addr ¶
func (l *OutboundListener) Addr() net.Addr
Addr implements net.Listener.
func (*OutboundListener) Close ¶
func (l *OutboundListener) Close() error
Close implement net.Listener.
type ReflectionConfig ¶
type ReflectionConfig struct {
// contains filtered or unexported fields
}
ReflectionConfig is the placeholder config for ReflectionService.
func (*ReflectionConfig) Descriptor
deprecated
func (*ReflectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReflectionConfig.ProtoReflect.Descriptor instead.
func (*ReflectionConfig) ProtoMessage ¶
func (*ReflectionConfig) ProtoMessage()
func (*ReflectionConfig) ProtoReflect ¶
func (x *ReflectionConfig) ProtoReflect() protoreflect.Message
func (*ReflectionConfig) Reset ¶
func (x *ReflectionConfig) Reset()
func (*ReflectionConfig) String ¶
func (x *ReflectionConfig) String() string
Click to show internal directories.
Click to hide internal directories.