Documentation ¶
Index ¶
- type RestServer
- func (s *RestServer) AddApiMapping(address string, handlerFunction rest.HandlerFunc)
- func (s *RestServer) Initialise() *RestServer
- func (s *RestServer) SetScenario(scenarioFilePath string)
- func (s *RestServer) SetSolution(solutionFilePath string)
- func (s *RestServer) SetSolutionSummary(solutionSummaryFilePath string)
- func (s *RestServer) Start()
- func (s *RestServer) WithAdminPort(adminPort uint64) *RestServer
- func (s *RestServer) WithApiMux(apiMux rest.Mux) *RestServer
- func (s *RestServer) WithApiPort(apiPort uint64) *RestServer
- func (s *RestServer) WithCacheMaximumAge(cacheMaximumAge uint64) *RestServer
- func (s *RestServer) WithLogger(logger logging.Logger) *RestServer
- func (s *RestServer) WithStatus(status admin.ServiceStatus) *RestServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestServer ¶
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
Click to show internal directories.
Click to hide internal directories.