server

package
v0.0.0-...-c864ae1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: BSD-2-Clause, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestServer

type RestServer struct {
	Logger logging.Logger
	// contains filtered or unexported fields
}

func (*RestServer) AddApiMapping

func (s *RestServer) AddApiMapping(address string, handlerFunction rest.HandlerFunc)

func (*RestServer) Initialise

func (s *RestServer) Initialise() *RestServer

func (*RestServer) SetScenario

func (s *RestServer) SetScenario(scenarioFilePath string)

func (*RestServer) SetSolution

func (s *RestServer) SetSolution(solutionFilePath string)

func (*RestServer) SetSolutionSummary

func (s *RestServer) SetSolutionSummary(solutionSummaryFilePath string)

func (*RestServer) Start

func (s *RestServer) Start()

func (*RestServer) WithAdminPort

func (s *RestServer) WithAdminPort(adminPort uint64) *RestServer

func (*RestServer) WithApiMux

func (s *RestServer) WithApiMux(apiMux rest.Mux) *RestServer

func (*RestServer) WithApiPort

func (s *RestServer) WithApiPort(apiPort uint64) *RestServer

func (*RestServer) WithCacheMaximumAge

func (s *RestServer) WithCacheMaximumAge(cacheMaximumAge uint64) *RestServer

func (*RestServer) WithLogger

func (s *RestServer) WithLogger(logger logging.Logger) *RestServer

func (*RestServer) WithStatus

func (s *RestServer) WithStatus(status admin.ServiceStatus) *RestServer

Directories

Path Synopsis
job

Jump to

Keyboard shortcuts

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