controller

package
v0.0.0-...-1887170 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HcloudServerClient

type HcloudServerClient interface {
	All(ctx context.Context) ([]*hcloud.Server, error)
}

type ServerCostsController

type ServerCostsController struct {
	Client HcloudServerClient
}

func NewServerCostsController

func NewServerCostsController(client HcloudServerClient) *ServerCostsController

func (*ServerCostsController) CalculateServerCosts

func (scc *ServerCostsController) CalculateServerCosts() (*ServerCostsResponse, error)

type ServerCostsResponse

type ServerCostsResponse struct {
	Monthly float64
	Hourly  float64
}

Jump to

Keyboard shortcuts

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