vms

package
v0.0.0-...-4412e31 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers = wire.NewSet(NewStore, HttpHandler) /**/

Set of providers for channels components.

Functions

func HttpHandler

func HttpHandler(storage *Storage) http.HandlerFunc

Types

type HttpHandlerFunc

type HttpHandlerFunc http.HandlerFunc

type Storage

type Storage struct {
	Db *pgxpool.Pool
}

func NewStore

func NewStore(db *pgxpool.Pool) *Storage

func (*Storage) GetVMSdataInfo

func (s *Storage) GetVMSdataInfo() ([]*VMSdata, error)

func (*Storage) UpdateVMS

func (s *Storage) UpdateVMS(machineId int64, state bool) error

type VMS

type VMS struct {
	Id    int64 `json:"id"`
	State bool  `json:"state"`
}

type VMSdata

type VMSdata struct {
	Id  int64   `json:"id"`
	Std []int64 `json:"StdVMSdata"`
	All int64   `json:"AllVMSdataCount"`
}

Jump to

Keyboard shortcuts

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