Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + func PrintVersion() v1.10.0 Aug 28, 2020 Changes in this version + var File_v2ray_com_core_config_proto protoreflect.FileDescriptor + func AddInboundHandler(server *Instance, config *InboundHandlerConfig) error + func AddOutboundHandler(server *Instance, config *OutboundHandlerConfig) error + func CreateObject(v *Instance, config interface{}) (interface{}, error) + func Dial(ctx context.Context, v *Instance, dest net.Destination) (net.Conn, error) + func DialUDP(ctx context.Context, v *Instance) (net.PacketConn, error) + func RegisterConfigLoader(format *ConfigFormat) error + func RequireFeatures(ctx context.Context, callback interface{}) error + func ServerType() interface + func Version() string + func VersionStatement() []string + type Annotation struct + API string + type Config struct + App []*serial.TypedMessage + Extension []*serial.TypedMessage + Inbound []*InboundHandlerConfig + Outbound []*OutboundHandlerConfig + Transport *transport.Config + func LoadConfig(formatName string, filename string, input interface{}) (*Config, error) + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetApp() []*serial.TypedMessage + func (x *Config) GetExtension() []*serial.TypedMessage + func (x *Config) GetInbound() []*InboundHandlerConfig + func (x *Config) GetOutbound() []*OutboundHandlerConfig + func (x *Config) GetTransport() *transport.Config + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type ConfigFormat struct + Extension []string + Loader ConfigLoader + Name string + type ConfigLoader func(input interface{}) (*Config, error) + type InboundHandlerConfig struct + ProxySettings *serial.TypedMessage + ReceiverSettings *serial.TypedMessage + Tag string + func (*InboundHandlerConfig) Descriptor() ([]byte, []int) + func (*InboundHandlerConfig) ProtoMessage() + func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage + func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage + func (x *InboundHandlerConfig) GetTag() string + func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message + func (x *InboundHandlerConfig) Reset() + func (x *InboundHandlerConfig) String() string + type Instance struct + func FromContext(ctx context.Context) *Instance + func MustFromContext(ctx context.Context) *Instance + func New(config *Config) (*Instance, error) + func NewWithContext(config *Config, ctx context.Context) (*Instance, error) + func StartInstance(configFormat string, configBytes []byte) (*Instance, error) + func (s *Instance) AddFeature(feature features.Feature) error + func (s *Instance) Close() error + func (s *Instance) GetFeature(featureType interface{}) features.Feature + func (s *Instance) RequireFeatures(callback interface{}) error + func (s *Instance) Start() error + func (s *Instance) Type() interface{} + type OutboundHandlerConfig struct + Comment string + Expire int64 + ProxySettings *serial.TypedMessage + SenderSettings *serial.TypedMessage + Tag string + func (*OutboundHandlerConfig) Descriptor() ([]byte, []int) + func (*OutboundHandlerConfig) ProtoMessage() + func (x *OutboundHandlerConfig) GetComment() string + func (x *OutboundHandlerConfig) GetExpire() int64 + func (x *OutboundHandlerConfig) GetProxySettings() *serial.TypedMessage + func (x *OutboundHandlerConfig) GetSenderSettings() *serial.TypedMessage + func (x *OutboundHandlerConfig) GetTag() string + func (x *OutboundHandlerConfig) ProtoReflect() protoreflect.Message + func (x *OutboundHandlerConfig) Reset() + func (x *OutboundHandlerConfig) String() string + type Server interface + type V2rayKey int Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018