vms

package
v0.0.0-...-314b476 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MainLoader

func MainLoader(cont *Container) http.HandlerFunc

Types

type Balancer

type Balancer struct {
	Id       int64   `json:"id"`
	Shutdown []int64 `json:"usedVMS"`
	All      int64   `json:"allVMS"`
}

type Container

type Container struct {
	Db *pgxpool.Pool
}

func CreateContainer

func CreateContainer(db *pgxpool.Pool) *Container

func (*Container) ConnInfo

func (cont *Container) ConnInfo() ([]*Balancer, error)

func (*Container) UpdateVMS

func (cont *Container) UpdateVMS(vmsid int64, state bool) error

type VMS

type VMS struct {
	Id     int64 `json:"id"`
	Status bool  `json:"status"`
}

Jump to

Keyboard shortcuts

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