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
Click to show internal directories.
Click to hide internal directories.