RoutingA

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 6 Imported by: 2

README

RoutingA

It is a parser lib that can help your routing rules more readable and understandable for users.

example

parser_test.go

v2rayA wiki

detail

design and implementation details

LICENSE

MIT LICENSE

Documentation

Overview

RoutingA: https://github.com/v2rayA/RoutingA Use of this source code is governed by MIT license that can be found in the LICENSE file.

RoutingA: https://github.com/v2rayA/RoutingA Use of this source code is governed by MIT license that can be found in the LICENSE file.

RoutingA: https://github.com/v2rayA/RoutingA Use of this source code is governed by MIT license that can be found in the LICENSE file.

RoutingA: https://github.com/v2rayA/RoutingA Use of this source code is governed by MIT license that can be found in the LICENSE file.

RoutingA: https://github.com/v2rayA/RoutingA Use of this source code is governed by MIT license that can be found in the LICENSE file.

RoutingA: https://github.com/v2rayA/RoutingA Use of this source code is governed by MIT license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bound

type Bound struct {
	Name  string
	Value Function
}

httpauthin = http(address: 0.0.0.0, port: 1080, user: 'my-username', pass: 'my-password') httpout = http(address: 127.0.0.1, port: 8080, user: 'my-username', pass: 'my-password')

type Define

type Define struct {
	Name  string
	Value interface{}
}

inbound: httpauthin = http(address: 0.0.0.0, port: 1080, user: 'my-username', pass: 'my-password', user: 'my-username2', pass: 'my-password2') outbound: httpout = http(address: 127.0.0.1, port: 8080, user: 'my-username', pass: 'my-password') default: proxy

type Function

type Function struct {
	Name        string
	Params      []string
	NamedParams map[string][]string
}

http(address: 127.0.0.1, port: 8080, user: 'my-username', pass: 'my-password')

type Routing

type Routing struct {
	And []Function
	Out string
}

domain(domain: v2raya.mzz.pub) -> socksout

type RoutingA

type RoutingA []interface{}

func Parse

func Parse(program string) (rules RoutingA, err error)

func (RoutingA) Unfold

func (ra RoutingA) Unfold() (rs []Routing, ds []Define)

Jump to

Keyboard shortcuts

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