Documentation ¶
Index ¶
- func SplitModeArgs(s string) (x unique.Handle[bypass.ModeEnum], ok bool)
- func TrimComment(s string) string
- type Args
- type Dialer
- type RawArgs
- type RejectHistory
- type Resolver
- type Route
- func (f *Route) Close() error
- func (s *Route) Conn(ctx context.Context, host netapi.Address) (net.Conn, error)
- func (s *Route) Dispatch(ctx context.Context, host netapi.Address) (netapi.Address, error)
- func (f *Route) LookupIP(ctx context.Context, domain string, opts ...func(*netapi.LookupIPOption)) ([]net.IP, error)
- func (s *Route) PacketConn(ctx context.Context, host netapi.Address) (net.PacketConn, error)
- func (f *Route) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
- func (s *Route) Resolver(ctx context.Context, domain string) netapi.Resolver
- func (s *Route) Search(ctx context.Context, addr netapi.Address) bypass.ModeEnum
- func (s *Route) SearchProcess(ctx context.Context, process string) (bypass.ModeEnum, bool)
- func (s *Route) Tags() iter.Seq[string]
- type RuleController
- func (s *RuleController) BlockHistory(context.Context, *emptypb.Empty) (*gc.BlockHistoryList, error)
- func (s *RuleController) Load(ctx context.Context, empty *emptypb.Empty) (*bypass.Config, error)
- func (s *RuleController) Reload(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error)
- func (s *RuleController) Save(ctx context.Context, config *bypass.Config) (*emptypb.Empty, error)
- func (s *RuleController) Test(ctx context.Context, req *wrapperspb.StringValue) (*gc.TestResponse, error)
- type Uri
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TrimComment ¶
Types ¶
type Args ¶
type Args struct { Tag string Mode bypass.Mode ResolveStrategy bypass.ResolveStrategy UdpProxyFqdnStrategy bypass.UdpProxyFqdnStrategy }
func (Args) ToModeConfig ¶
func (a Args) ToModeConfig(hostname []string) *bypass.ModeConfig
type RejectHistory ¶ added in v0.3.7
type RejectHistory struct {
// contains filtered or unexported fields
}
func (*RejectHistory) Get ¶ added in v0.3.7
func (h *RejectHistory) Get() *gc.BlockHistoryList
type Route ¶
type Route struct { ProcessDumper netapi.ProcessDumper RejectHistory // contains filtered or unexported fields }
func (*Route) PacketConn ¶
func (*Route) Raw ¶
func (f *Route) Raw(ctx context.Context, req dnsmessage.Question) (dnsmessage.Message, error)
func (*Route) SearchProcess ¶ added in v0.3.7
type RuleController ¶ added in v0.3.7
type RuleController struct { gc.UnimplementedBypassServer // contains filtered or unexported fields }
func NewRuleController ¶ added in v0.3.7
func NewRuleController(db config.DB, r *Route) *RuleController
func (*RuleController) BlockHistory ¶ added in v0.3.7
func (s *RuleController) BlockHistory(context.Context, *emptypb.Empty) (*gc.BlockHistoryList, error)
func (*RuleController) Test ¶ added in v0.3.7
func (s *RuleController) Test(ctx context.Context, req *wrapperspb.StringValue) (*gc.TestResponse, error)
Click to show internal directories.
Click to hide internal directories.