configs

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package configs provides type aliases to buf.build generated protobuf modules, preserving the historical import path used across vx-core.

Index

Constants

View Source
const (
	DnsType_DnsType_A    = dnspb.DnsType_DnsType_A
	DnsType_DnsType_AAAA = dnspb.DnsType_DnsType_AAAA

	TunConfig_FOUR_ONLY = tunpb.TunConfig_FOUR_ONLY
	TunConfig_BOTH      = tunpb.TunConfig_BOTH
	TunConfig_DYNAMIC   = tunpb.TunConfig_DYNAMIC
	Mode_MODE_SYSTEM    = tunpb.Mode_MODE_SYSTEM
	Mode_MODE_GVISOR    = tunpb.Mode_MODE_GVISOR

	AppId_Keyword = routerpb.AppId_Keyword
	AppId_Prefix  = routerpb.AppId_Prefix
	AppId_Exact   = routerpb.AppId_Exact

	Level_DEBUG    = vxlog.Level_DEBUG
	Level_INFO     = vxlog.Level_INFO
	Level_WARN     = vxlog.Level_WARN
	Level_ERROR    = vxlog.Level_ERROR
	Level_FATAL    = vxlog.Level_FATAL
	Level_DISABLED = vxlog.Level_DISABLED
)
View Source
const (
	AuthType_NO_AUTH  = sockspb.AuthType_NO_AUTH
	AuthType_PASSWORD = sockspb.AuthType_PASSWORD

	SecurityType_SecurityType_UNKNOWN           = vmesspb.SecurityType_SecurityType_UNKNOWN
	SecurityType_SecurityType_LEGACY            = vmesspb.SecurityType_SecurityType_LEGACY
	SecurityType_SecurityType_AUTO              = vmesspb.SecurityType_SecurityType_AUTO
	SecurityType_SecurityType_AES128_GCM        = vmesspb.SecurityType_SecurityType_AES128_GCM
	SecurityType_SecurityType_CHACHA20_POLY1305 = vmesspb.SecurityType_SecurityType_CHACHA20_POLY1305
	SecurityType_SecurityType_NONE              = vmesspb.SecurityType_SecurityType_NONE
	SecurityType_SecurityType_ZERO              = vmesspb.SecurityType_SecurityType_ZERO

	ShadowsocksCipherType_AES_128_GCM       = sspb.ShadowsocksCipherType_AES_128_GCM
	ShadowsocksCipherType_AES_256_GCM       = sspb.ShadowsocksCipherType_AES_256_GCM
	ShadowsocksCipherType_CHACHA20_POLY1305 = sspb.ShadowsocksCipherType_CHACHA20_POLY1305
	ShadowsocksCipherType_NONE              = sspb.ShadowsocksCipherType_NONE
)

Variables

This section is empty.

Functions

func HandlerTag added in v1.1.2

func HandlerTag(h *HandlerConfig) string

HandlerTag returns the tag from either the outbound or chain variant of HandlerConfig.

Types

type Account added in v1.1.2

type Account = httppb.Account

type AnytlsClientConfig added in v1.1.2

type AnytlsClientConfig = anytlspb.AnytlsClientConfig

Client configs

type AnytlsServerConfig added in v1.1.2

type AnytlsServerConfig = anytlspb.AnytlsServerConfig

Server configs

type AppId

type AppId = routerpb.AppId

Router

type AppId_Type

type AppId_Type = routerpb.AppId_Type

Router

type AppSetConfig

type AppSetConfig = geopb.AppSetConfig

Geo

type AtomicDomainSetConfig

type AtomicDomainSetConfig = geopb.AtomicDomainSetConfig

Geo

type AtomicIPSetConfig

type AtomicIPSetConfig = geopb.AtomicIPSetConfig

Geo

type AuthType added in v1.1.2

type AuthType = sockspb.AuthType

Enums

type BandwidthConfig added in v1.1.2

type BandwidthConfig = hysteriapb.BandwidthConfig

type ChainHandlerConfig

type ChainHandlerConfig = outboundpb.ChainHandlerConfig

Outbound

type DispatcherConfig

type DispatcherConfig = dispatcherpb.DispatcherConfig

Dispatcher, subscription, sysproxy, gRPC service (client)

type DnsConfig

type DnsConfig = dnspb.DnsConfig

DNS

type DnsRuleConfig

type DnsRuleConfig = dnspb.DnsRuleConfig

DNS

type DnsRules

type DnsRules = dnspb.DnsRules

DNS

type DnsServerConfig

type DnsServerConfig = dnspb.DnsServerConfig

DNS

type DnsServerConfig_DohDnsServer

type DnsServerConfig_DohDnsServer = dnspb.DnsServerConfig_DohDnsServer

DNS

type DnsServerConfig_FakeDnsServer

type DnsServerConfig_FakeDnsServer = dnspb.DnsServerConfig_FakeDnsServer

DNS

type DnsServerConfig_PlainDnsServer

type DnsServerConfig_PlainDnsServer = dnspb.DnsServerConfig_PlainDnsServer

DNS

type DnsServerConfig_QuicDnsServer

type DnsServerConfig_QuicDnsServer = dnspb.DnsServerConfig_QuicDnsServer

DNS

type DnsServerConfig_TlsDnsServer

type DnsServerConfig_TlsDnsServer = dnspb.DnsServerConfig_TlsDnsServer

DNS

type DnsType

type DnsType = dnspb.DnsType

DNS

type DohDnsServer

type DohDnsServer = dnspb.DohDnsServer

DNS

type DokodemoConfig added in v1.1.2

type DokodemoConfig = dokodemopb.DokodemoConfig

Shared / nested

type DomainSetConfig

type DomainSetConfig = geopb.DomainSetConfig

Geo

type DomainStrategy

type DomainStrategy = outboundpb.DomainStrategy

Outbound

type FakeDnsServer

type FakeDnsServer = dnspb.FakeDnsServer

DNS

type FakeDnsServer_PoolConfig

type FakeDnsServer_PoolConfig = dnspb.FakeDnsServer_PoolConfig

DNS

type FreedomConfig added in v1.1.2

type FreedomConfig = freedompb.FreedomConfig

type GeoConfig

type GeoConfig = geopb.GeoConfig

Geo

type GeoIPConfig

type GeoIPConfig = geopb.GeoIPConfig

Geo

type GeositeConfig

type GeositeConfig = geopb.GeositeConfig

Geo

type GreatDomainSetConfig

type GreatDomainSetConfig = geopb.GreatDomainSetConfig

Geo

type GreatIPSetConfig

type GreatIPSetConfig = geopb.GreatIPSetConfig

Geo

type GrpcConfig

type GrpcConfig = grpcsvc.GrpcConfig

Dispatcher, subscription, sysproxy, gRPC service (client)

type GrpcServiceConfig added in v1.0.7

type GrpcServiceConfig = grpcsvc.GrpcServiceConfig

Dispatcher, subscription, sysproxy, gRPC service (client)

type HandlerConfig

type HandlerConfig = outboundpb.HandlerConfig

Outbound

type HandlerConfig_Chain

type HandlerConfig_Chain = outboundpb.HandlerConfig_Chain

Outbound

type HandlerConfig_Outbound

type HandlerConfig_Outbound = outboundpb.HandlerConfig_Outbound

Outbound

type HandlerConfigs

type HandlerConfigs = outboundpb.HandlerConfigs

Outbound

type HttpClientConfig added in v1.1.2

type HttpClientConfig = httppb.HttpClientConfig

type HttpServerConfig added in v1.1.2

type HttpServerConfig = httppb.HttpServerConfig

type Hysteria2ClientConfig added in v1.1.2

type Hysteria2ClientConfig = hysteriapb.Hysteria2ClientConfig

type Hysteria2ServerConfig added in v1.1.2

type Hysteria2ServerConfig = hysteriapb.Hysteria2ServerConfig

type InboundManagerConfig

type InboundManagerConfig = inboundpb.InboundManagerConfig

Inbound

type Level

type Level = vxlog.Level

Log

type LoggerConfig

type LoggerConfig = vxlog.LoggerConfig

Log

type Mode

type Mode = tunpb.Mode

Tun

type MultiProxyInboundConfig

type MultiProxyInboundConfig = inboundpb.MultiProxyInboundConfig

Inbound

type MultiProxyInboundConfig_Protocol

type MultiProxyInboundConfig_Protocol = inboundpb.MultiProxyInboundConfig_Protocol

Inbound

type MultiProxyInboundConfig_Protocol_Grpc

type MultiProxyInboundConfig_Protocol_Grpc = inboundpb.MultiProxyInboundConfig_Protocol_Grpc

Inbound

type MultiProxyInboundConfig_Protocol_Http

type MultiProxyInboundConfig_Protocol_Http = inboundpb.MultiProxyInboundConfig_Protocol_Http

Inbound

type MultiProxyInboundConfig_Protocol_Httpupgrade

type MultiProxyInboundConfig_Protocol_Httpupgrade = inboundpb.MultiProxyInboundConfig_Protocol_Httpupgrade

Inbound

type MultiProxyInboundConfig_Protocol_Splithttp

type MultiProxyInboundConfig_Protocol_Splithttp = inboundpb.MultiProxyInboundConfig_Protocol_Splithttp

Inbound

type MultiProxyInboundConfig_Protocol_Tcp

type MultiProxyInboundConfig_Protocol_Tcp = inboundpb.MultiProxyInboundConfig_Protocol_Tcp

Inbound

type MultiProxyInboundConfig_Protocol_Websocket

type MultiProxyInboundConfig_Protocol_Websocket = inboundpb.MultiProxyInboundConfig_Protocol_Websocket

Inbound

type MultiProxyInboundConfig_Security

type MultiProxyInboundConfig_Security = inboundpb.MultiProxyInboundConfig_Security

Inbound

type MultiProxyInboundConfig_Security_Reality

type MultiProxyInboundConfig_Security_Reality = inboundpb.MultiProxyInboundConfig_Security_Reality

Inbound

type MultiProxyInboundConfig_Security_Tls

type MultiProxyInboundConfig_Security_Tls = inboundpb.MultiProxyInboundConfig_Security_Tls

Inbound

type MuxConfig

type MuxConfig = outboundpb.MuxConfig

Outbound

type ObfsConfig added in v1.1.2

type ObfsConfig = hysteriapb.ObfsConfig

type ObfsConfig_Salamander added in v1.1.2

type ObfsConfig_Salamander = hysteriapb.ObfsConfig_Salamander

type OutboundConfig

type OutboundConfig = outboundpb.OutboundConfig

Outbound

type OutboundHandlerConfig

type OutboundHandlerConfig = outboundpb.OutboundHandlerConfig

Outbound

type PlainDnsServer

type PlainDnsServer = dnspb.PlainDnsServer

DNS

type PolicyConfig

type PolicyConfig = vx.PolicyConfig

Root (vx)

type ProxyInboundConfig

type ProxyInboundConfig = inboundpb.ProxyInboundConfig

Inbound

type QuicDnsServer

type QuicDnsServer = dnspb.QuicDnsServer

DNS

type Record

type Record = dnspb.Record

DNS

type RouterConfig

type RouterConfig = routerpb.RouterConfig

Router

type RuleConfig

type RuleConfig = routerpb.RuleConfig

Router

type RuleConfig_Fallback added in v1.1.0

type RuleConfig_Fallback = routerpb.RuleConfig_Fallback

Router

type RuleConfig_Fallback_Action added in v1.1.0

type RuleConfig_Fallback_Action = routerpb.RuleConfig_Fallback_Action

Router

type SalamanderConfig added in v1.1.2

type SalamanderConfig = hysteriapb.SalamanderConfig

type SecurityType added in v1.1.2

type SecurityType = vmesspb.SecurityType

type SelectorConfig

type SelectorConfig = routerpb.SelectorConfig

Router

type SelectorConfig_BalanceStrategy

type SelectorConfig_BalanceStrategy = routerpb.SelectorConfig_BalanceStrategy

Router

type SelectorConfig_Filter

type SelectorConfig_Filter = routerpb.SelectorConfig_Filter

Router

type SelectorConfig_SelectingStrategy

type SelectorConfig_SelectingStrategy = routerpb.SelectorConfig_SelectingStrategy

Router

type SelectorsConfig

type SelectorsConfig = routerpb.SelectorsConfig

Router

type ServerConfig added in v1.1.2

type ServerConfig = vx.ServerConfig

Root (vx)

type Shadowsocks2022ClientConfig added in v1.1.2

type Shadowsocks2022ClientConfig = shadowsocks2022pb.Shadowsocks2022ClientConfig

type Shadowsocks2022ServerConfig added in v1.1.2

type Shadowsocks2022ServerConfig = shadowsocks2022pb.Shadowsocks2022ServerConfig

type ShadowsocksAccount added in v1.1.2

type ShadowsocksAccount = sspb.ShadowsocksAccount

type ShadowsocksCipherType added in v1.1.2

type ShadowsocksCipherType = sspb.ShadowsocksCipherType

type ShadowsocksClientConfig added in v1.1.2

type ShadowsocksClientConfig = sspb.ShadowsocksClientConfig

type ShadowsocksServerConfig added in v1.1.2

type ShadowsocksServerConfig = sspb.ShadowsocksServerConfig

type SocketConfig

type SocketConfig = transportpb.SocketConfig

Transport

type SocketConfig_TCPFastOpenState

type SocketConfig_TCPFastOpenState = transportpb.SocketConfig_TCPFastOpenState

Transport

type SocketConfig_TProxyMode

type SocketConfig_TProxyMode = transportpb.SocketConfig_TProxyMode

Transport

type SocksClientConfig added in v1.1.2

type SocksClientConfig = sockspb.SocksClientConfig

type SocksServerConfig added in v1.1.2

type SocksServerConfig = sockspb.SocksServerConfig

type SubscriptionConfig

type SubscriptionConfig = subscriptionpb.SubscriptionConfig

Dispatcher, subscription, sysproxy, gRPC service (client)

type SysProxyConfig

type SysProxyConfig = sysproxypb.SysProxyConfig

Dispatcher, subscription, sysproxy, gRPC service (client)

type TlsDnsServer

type TlsDnsServer = dnspb.TlsDnsServer

DNS

type TmConfig

type TmConfig = vx.TmConfig

Root (vx)

type TransportConfig

type TransportConfig = transportpb.TransportConfig

Transport

type TransportConfig_Grpc

type TransportConfig_Grpc = transportpb.TransportConfig_Grpc

Transport

type TransportConfig_Http

type TransportConfig_Http = transportpb.TransportConfig_Http

Transport

type TransportConfig_Httpupgrade

type TransportConfig_Httpupgrade = transportpb.TransportConfig_Httpupgrade

Transport

type TransportConfig_Kcp

type TransportConfig_Kcp = transportpb.TransportConfig_Kcp

Transport

type TransportConfig_Reality

type TransportConfig_Reality = transportpb.TransportConfig_Reality

Transport

type TransportConfig_Splithttp

type TransportConfig_Splithttp = transportpb.TransportConfig_Splithttp

Transport

type TransportConfig_Tcp

type TransportConfig_Tcp = transportpb.TransportConfig_Tcp

Transport

type TransportConfig_Tls

type TransportConfig_Tls = transportpb.TransportConfig_Tls

Transport

type TransportConfig_Websocket

type TransportConfig_Websocket = transportpb.TransportConfig_Websocket

Transport

type TrojanClientConfig added in v1.1.2

type TrojanClientConfig = trojanpb.TrojanClientConfig

type TrojanServerConfig added in v1.1.2

type TrojanServerConfig = trojanpb.TrojanServerConfig

type TunConfig

type TunConfig = tunpb.TunConfig

Tun

type TunConfig_TUN46Setting

type TunConfig_TUN46Setting = tunpb.TunConfig_TUN46Setting

Tun

type TunDeviceConfig

type TunDeviceConfig = tunpb.TunDeviceConfig

Tun

type UserConfig

type UserConfig = userpb.UserConfig

User

type UserLoggerConfig added in v1.0.5

type UserLoggerConfig = vxlog.UserLoggerConfig

Log

type UserManagerConfig

type UserManagerConfig = userpb.UserManagerConfig

User

type UserPolicy

type UserPolicy = vx.UserPolicy

Root (vx)

type VlessClientConfig added in v1.1.2

type VlessClientConfig = vlesspb.VlessClientConfig

type VlessServerConfig added in v1.1.2

type VlessServerConfig = vlesspb.VlessServerConfig

type VmessClientConfig added in v1.1.2

type VmessClientConfig = vmesspb.VmessClientConfig

type VmessServerConfig added in v1.1.2

type VmessServerConfig = vmesspb.VmessServerConfig

type WfpConfig

type WfpConfig = inboundpb.WfpConfig

Inbound

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL