config

package
v0.0.0-...-2a802d5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bypass

type Bypass struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=Enabled,json=enabled,proto3" json:"Enabled,omitempty"`
	BypassFile           string   `protobuf:"bytes,2,opt,name=BypassFile,json=bypass_file,proto3" json:"BypassFile,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Bypass) Descriptor

func (*Bypass) Descriptor() ([]byte, []int)

func (*Bypass) GetBypassFile

func (m *Bypass) GetBypassFile() string

func (*Bypass) GetEnabled

func (m *Bypass) GetEnabled() bool

func (*Bypass) ProtoMessage

func (*Bypass) ProtoMessage()

func (*Bypass) Reset

func (m *Bypass) Reset()

func (*Bypass) String

func (m *Bypass) String() string

func (*Bypass) XXX_DiscardUnknown

func (m *Bypass) XXX_DiscardUnknown()

func (*Bypass) XXX_Marshal

func (m *Bypass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bypass) XXX_Merge

func (m *Bypass) XXX_Merge(src proto.Message)

func (*Bypass) XXX_Size

func (m *Bypass) XXX_Size() int

func (*Bypass) XXX_Unmarshal

func (m *Bypass) XXX_Unmarshal(b []byte) error

type DNS

type DNS struct {
	Host                 string   `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"`
	DOH                  bool     `protobuf:"varint,2,opt,name=DOH,json=doh,proto3" json:"DOH,omitempty"`
	Proxy                bool     `protobuf:"varint,3,opt,name=Proxy,json=proxy,proto3" json:"Proxy,omitempty"`
	Subnet               string   `protobuf:"bytes,4,opt,name=subnet,proto3" json:"subnet,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DNS) Descriptor

func (*DNS) Descriptor() ([]byte, []int)

func (*DNS) GetDOH

func (m *DNS) GetDOH() bool

func (*DNS) GetHost

func (m *DNS) GetHost() string

func (*DNS) GetProxy

func (m *DNS) GetProxy() bool

func (*DNS) GetSubnet

func (m *DNS) GetSubnet() string

func (*DNS) ProtoMessage

func (*DNS) ProtoMessage()

func (*DNS) Reset

func (m *DNS) Reset()

func (*DNS) String

func (m *DNS) String() string

func (*DNS) XXX_DiscardUnknown

func (m *DNS) XXX_DiscardUnknown()

func (*DNS) XXX_Marshal

func (m *DNS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DNS) XXX_Merge

func (m *DNS) XXX_Merge(src proto.Message)

func (*DNS) XXX_Size

func (m *DNS) XXX_Size() int

func (*DNS) XXX_Unmarshal

func (m *DNS) XXX_Unmarshal(b []byte) error

type Proxy

type Proxy struct {
	HTTP                 string   `protobuf:"bytes,1,opt,name=HTTP,json=http,proto3" json:"HTTP,omitempty"`
	Socks5               string   `protobuf:"bytes,2,opt,name=Socks5,json=socks5,proto3" json:"Socks5,omitempty"`
	Redir                string   `protobuf:"bytes,3,opt,name=Redir,json=redir,proto3" json:"Redir,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Proxy) Descriptor

func (*Proxy) Descriptor() ([]byte, []int)

func (*Proxy) GetHTTP

func (m *Proxy) GetHTTP() string

func (*Proxy) GetRedir

func (m *Proxy) GetRedir() string

func (*Proxy) GetSocks5

func (m *Proxy) GetSocks5() string

func (*Proxy) ProtoMessage

func (*Proxy) ProtoMessage()

func (*Proxy) Reset

func (m *Proxy) Reset()

func (*Proxy) String

func (m *Proxy) String() string

func (*Proxy) XXX_DiscardUnknown

func (m *Proxy) XXX_DiscardUnknown()

func (*Proxy) XXX_Marshal

func (m *Proxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proxy) XXX_Merge

func (m *Proxy) XXX_Merge(src proto.Message)

func (*Proxy) XXX_Size

func (m *Proxy) XXX_Size() int

func (*Proxy) XXX_Unmarshal

func (m *Proxy) XXX_Unmarshal(b []byte) error

type Setting

type Setting struct {
	//TODO all json lower case
	SystemProxy          *SystemProxy `protobuf:"bytes,1,opt,name=SystemProxy,json=system_proxy,proto3" json:"SystemProxy,omitempty"`
	Bypass               *Bypass      `protobuf:"bytes,2,opt,name=Bypass,json=bypass,proto3" json:"Bypass,omitempty"`
	Proxy                *Proxy       `protobuf:"bytes,3,opt,name=Proxy,json=proxy,proto3" json:"Proxy,omitempty"`
	DNS                  *DNS         `protobuf:"bytes,4,opt,name=DNS,json=dns,proto3" json:"DNS,omitempty"`
	LocalDNS             *DNS         `protobuf:"bytes,5,opt,name=LocalDNS,json=local_dns,proto3" json:"LocalDNS,omitempty"`
	SsrPath              string       `protobuf:"bytes,11,opt,name=SsrPath,json=ssr_path,proto3" json:"SsrPath,omitempty"` // Deprecated: Do not use.
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Setting) Descriptor

func (*Setting) Descriptor() ([]byte, []int)

func (*Setting) GetBypass

func (m *Setting) GetBypass() *Bypass

func (*Setting) GetDNS

func (m *Setting) GetDNS() *DNS

func (*Setting) GetLocalDNS

func (m *Setting) GetLocalDNS() *DNS

func (*Setting) GetProxy

func (m *Setting) GetProxy() *Proxy

func (*Setting) GetSsrPath deprecated

func (m *Setting) GetSsrPath() string

Deprecated: Do not use.

func (*Setting) GetSystemProxy

func (m *Setting) GetSystemProxy() *SystemProxy

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) Reset

func (m *Setting) Reset()

func (*Setting) String

func (m *Setting) String() string

func (*Setting) XXX_DiscardUnknown

func (m *Setting) XXX_DiscardUnknown()

func (*Setting) XXX_Marshal

func (m *Setting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Setting) XXX_Merge

func (m *Setting) XXX_Merge(src proto.Message)

func (*Setting) XXX_Size

func (m *Setting) XXX_Size() int

func (*Setting) XXX_Unmarshal

func (m *Setting) XXX_Unmarshal(b []byte) error

type SystemProxy

type SystemProxy struct {
	Enabled              bool     `protobuf:"varint,1,opt,name=Enabled,json=enabled,proto3" json:"Enabled,omitempty"`
	HTTP                 bool     `protobuf:"varint,2,opt,name=HTTP,json=http,proto3" json:"HTTP,omitempty"`
	Socks5               bool     `protobuf:"varint,3,opt,name=Socks5,json=socks5,proto3" json:"Socks5,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SystemProxy) Descriptor

func (*SystemProxy) Descriptor() ([]byte, []int)

func (*SystemProxy) GetEnabled

func (m *SystemProxy) GetEnabled() bool

func (*SystemProxy) GetHTTP

func (m *SystemProxy) GetHTTP() bool

func (*SystemProxy) GetSocks5

func (m *SystemProxy) GetSocks5() bool

func (*SystemProxy) ProtoMessage

func (*SystemProxy) ProtoMessage()

func (*SystemProxy) Reset

func (m *SystemProxy) Reset()

func (*SystemProxy) String

func (m *SystemProxy) String() string

func (*SystemProxy) XXX_DiscardUnknown

func (m *SystemProxy) XXX_DiscardUnknown()

func (*SystemProxy) XXX_Marshal

func (m *SystemProxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SystemProxy) XXX_Merge

func (m *SystemProxy) XXX_Merge(src proto.Message)

func (*SystemProxy) XXX_Size

func (m *SystemProxy) XXX_Size() int

func (*SystemProxy) XXX_Unmarshal

func (m *SystemProxy) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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