server

package
v0.0.0-...-956bada Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSWrap

func CORSWrap(handler http.Handler) http.Handler

CORSWrap wraps http.Handler with CORS

Types

type Server

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

Server HTTP server implementation

func NewServer

func NewServer() *Server

NewServer returns new *Server instance

func (*Server) RegisterHTTPHandlers

func (s *Server) RegisterHTTPHandlers()

RegisterHTTPHandlers registers handler functions for HTTP server

func (*Server) Start

func (s *Server) Start() error

Start starts listening HTTP

Jump to

Keyboard shortcuts

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