webservice

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExamplesDir string
	TemplateDir string
	StaticDir   string
)

Functions

This section is empty.

Types

type ErrInternal

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

func NewErrInternal

func NewErrInternal(cause error, message string) *ErrInternal

func (*ErrInternal) Error

func (e *ErrInternal) Error() string

func (*ErrInternal) Report

func (e *ErrInternal) Report(w http.ResponseWriter)

Report sends internal server error to web client also logs to console.

type Server

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

func NewServer

func NewServer(iface string, port string) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Listener

func (s *Server) Listener() net.Listener

func (*Server) Start

func (s *Server) Start()

func (*Server) URL

func (s *Server) URL() string

Jump to

Keyboard shortcuts

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