balancers

package
v0.0.0-...-ef13b01 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Balancer

type Balancer struct {
	Id                 int64   `json:"id"`
	UsedMachines       []int64 `json:"usedMachines"`
	TotalMachinesCount int64   `json:"totalMachinesCount"`
}

type HttpHandlerFunc

type HttpHandlerFunc http.HandlerFunc

func HttpHandler

func HttpHandler(store *Store) HttpHandlerFunc

type Store

type Store struct {
	Db *sql.DB
}

func NewStore

func NewStore(db *sql.DB) *Store

func (*Store) ListBalancers

func (s *Store) ListBalancers() ([]*Balancer, error)

Jump to

Keyboard shortcuts

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