core

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ConfigPath string
	// contains filtered or unexported fields
}

func New

func New(c, g, f string) *App

func (*App) Start

func (app *App) Start(direct bool)

type Conf

type Conf struct {
	Groups Groups   `yaml:"group"`
	Single []Server `yaml:"single"`
}

type Group added in v0.4.0

type Group struct {
	Name     string
	Method   string   `yaml:"method"`
	User     string   `yaml:"user"`
	Port     int      `yaml:"port"`
	Password string   `yaml:"password"`
	IP       []string `yaml:"ip"`
	Key      string   `yaml:"key"`
}

type Groups added in v0.4.0

type Groups struct {
	Groups map[string]Group `yaml:"groups"`
}

type Server

type Server struct {
	Name     string `yaml:"name"`
	Method   string `yaml:"method"`
	User     string `yaml:"user"`
	IP       string `yaml:"ip"`
	Port     int    `yaml:"port"`
	Password string `yaml:"password"`
	Key      string `yaml:"key"`
}

func (*Server) Connect

func (s *Server) Connect()

Jump to

Keyboard shortcuts

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