http

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	ListenAndServe() error
	Watch(chan []types.Schema)
}

Server interface.

func NewServer

func NewServer(port string) Server

NewServer creates a http server running on given port with handlers based on given schema.

type ServerFunc

type ServerFunc func(port string) Server

ServerFunc is a constructor for a new server.

Jump to

Keyboard shortcuts

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