api

package
v0.0.0-...-1a4cfde Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

The api package provides a REST interface to Minizinc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server maintains the state of the HTTP APIs.

func NewServer

func NewServer(addr string, parallelism int, store service.ModelStore) *Server

NewServer creates a new server instance.

func (*Server) Serve

func (s *Server) Serve()

Serve runs the server main loop to handle incoming connections.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP proxies to the underlying router implementation. It implements the http.Handler interface.

Jump to

Keyboard shortcuts

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