Documentation ¶
Index ¶
- type Commander
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetService() []*serial.TypedMessage
- func (m *Config) GetTag() string
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Outbound
- type OutboundListener
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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" json:"tag,omitempty"` // Services that supported by this server. All services must implement Service interface. Service []*serial.TypedMessage `protobuf:"bytes,2,rep,name=service" json:"service,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Config is the settings for Commander.
func (*Config) GetService ¶
func (m *Config) GetService() []*serial.TypedMessage
func (*Config) XXX_Marshal ¶
type Outbound ¶
type Outbound struct {
// contains filtered or unexported fields
}
Outbound is a core.OutboundHandler that handles gRPC connections.
func (*Outbound) Dispatch ¶
Dispatch implements core.OutboundHandler.
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.
Click to show internal directories.
Click to hide internal directories.