config

package
v0.0.0-...-636e20b Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: LGPL-2.1 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id             string     `json:"id"`
	Variants       []*Variant `json:"variants"`
	SessionTimeout int        `json:"sessionTimeout"`
}

type Node

type Node struct {
	// full URL https://user:[email protected]
	Id     string `json:"id"`
	Server string `json:"server"`
	// name of the session cookie
	Cookie             string `json:"cookie"`
	MaxConnections     int    `json:"maxConnections"`
	InsecureSkipVerify bool   `json:"insecureSkipVerify"`
}

type Variant

type Variant struct {
	Id string `json:"id"`
	// 0-100 %
	Share int64   `json:"share"`
	Nodes []*Node `json:"nodes"`
}

Jump to

Keyboard shortcuts

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