config

package
v0.0.0-...-3769f41 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServerToDB

func AddServerToDB(host Server)

AddServerToDB : add server to DB

func DeleteServerFromDB

func DeleteServerFromDB(server string)

DeleteServerFromDB : Delete the server entry from DB

func GetAllServers

func GetAllServers() (servers []string)

GetAllServers : lists all the servers in DB

func UpdateHost

func UpdateHost(host Server)

UpdateHost : update the host details in the DB

Types

type Server

type Server struct {
	Id       int
	Name     string
	Address  string
	Username string
	Password string
}

Server : struct

func GetDetailOfSpecificServer

func GetDetailOfSpecificServer(server string) (host Server)

GetDetailOfSpecificServer : Return server's raddress, username, password.

Jump to

Keyboard shortcuts

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