tailbridge

package
v0.0.0-...-468cb4b Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

http server with socket.io

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMachinesIndex

func BuildMachinesIndex(groups map[string]Group)

func GetMachineParams

func GetMachineParams(ip string) (user string, port int, succes bool)

func InitServer

func InitServer(port int)

func IsFileAllowed

func IsFileAllowed(file_name string, machine_ip string) bool

func Tail

func Tail(machine string, user string, port int, file_name string, out_bytes chan string)

Types

type Config

type Config struct {
	Listen int
	Groups map[string]Group
}

func ReadConfig

func ReadConfig(config_path string) Config

type Group

type Group struct {
	User        string
	Port        int
	Machines    []string
	Directories []string
}

Jump to

Keyboard shortcuts

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