import "v2ray.com/core/app/commander"
commander.go config.pb.go errors.generated.go outbound.go service.go
var File_app_commander_config_proto protoreflect.FileDescriptor
Commander is a V2Ray feature that provides gRPC methods to external clients.
NewCommander creates a new Commander based on the given config.
Close implements common.Closable.
Start implements common.Runnable.
Type implements common.HasType.
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.
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (x *Config) GetService() []*serial.TypedMessage
func (x *Config) ProtoReflect() protoreflect.Message
type Outbound struct {
// contains filtered or unexported fields
}
Outbound is a outbound.Handler that handles gRPC connections.
Close implements common.Closable.
Dispatch implements outbound.Handler.
Start implements common.Runnable.
Tag implements outbound.Handler.
type OutboundListener struct {
// contains filtered or unexported fields
}
OutboundListener is a net.Listener for listening gRPC connections.
func (l *OutboundListener) Accept() (net.Conn, error)
Accept implements net.Listener.
func (l *OutboundListener) Addr() net.Addr
Addr implements net.Listener.
func (l *OutboundListener) Close() error
Close implement net.Listener.
type Service interface { // Register registers the service itself to a gRPC server. Register(*grpc.Server) }
Service is a Commander service.
Package commander imports 16 packages (graph) and is imported by 6 packages. Updated 2020-10-15. Refresh now. Tools for package owners.