config

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Bind  []Node `json:"bind"`
	Proxy []Node `json:"proxy"`
}

func LoadConfig

func LoadConfig(configs ...string) ([]Chain, error)

func LoadConfigWithArgs

func LoadConfigWithArgs(listens []string, dials []string) ([]Chain, error)

func (Chain) Verification

func (c Chain) Verification() error

type Config

type Config struct {
	Chains []Chain `json:"chains"`
}

type Node

type Node struct {
	Probe string   `json:"probe"`
	LB    []string `json:"lb"`
}

func (Node) MarshalJSON

func (m Node) MarshalJSON() ([]byte, error)

func (*Node) UnmarshalJSON

func (m *Node) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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