providers

package
v0.0.0-...-36d7847 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookingServerProvider

type BookingServerProvider struct {
	// contains filtered or unexported fields
}

func NewBookingServerProvider

func NewBookingServerProvider(addr string) *BookingServerProvider

func (*BookingServerProvider) GetServerList

func (sp *BookingServerProvider) GetServerList() ([]*Server, error)

type Server

type Server struct {
	Server       string `json:"server"`
	LocalAddress string `json:"local_address"`
	LocalPort    int    `json:"local_port"`
	Timeout      int    `json:"timeout"`
	Workers      int    `json:"workers"`
	ServerPort   int    `json:"server_port"`
	Password     string `json:"password"`
	Method       string `json:"method"`
	Plugin       string `json:"plugin"`
	PingSpeed    float64
}

type ServerProvider

type ServerProvider interface {
	GetServerList() ([]*Server, error)
}

Jump to

Keyboard shortcuts

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