services

package
v1.109.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPService

type HTTPService interface {
	// Register assigns the endpoints and returns an error on failure.
	Register(*httprouter.Router) error
}

HTTPService defines an implementation prototype for an object capable of registering endpoints on an http router which provide an service relevant to the cost-model.

func NewClusterManagerService

func NewClusterManagerService() HTTPService

NewClusterManagerService creates a new HTTPService implementation driving cluster definition management for the frontend

type HTTPServices

type HTTPServices interface {
	// Add a HTTPService implementation for registration
	Add(service HTTPService)

	// RegisterAll registers all the services added with the provided router
	RegisterAll(*httprouter.Router) error
}

HTTPServices defines an implementation prototype for an object capable of managing and registering predefined HTTPService routes

func NewCostModelServices

func NewCostModelServices() HTTPServices

NewCostModelServices creates an HTTPServices implementation containing any predefined http services used with the cost-model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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