server

package
Version: v0.0.0-...-9d64b15 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalRequestBodyToJson

func UnmarshalRequestBodyToJson(r *http.Request, body interface{}) (err error)

Types

type Server

type Server struct {
	Port    int
	Version string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port int) *Server

func (*Server) AddNamespaceRoute

func (s *Server) AddNamespaceRoute(r *route.NamespaceRoute)

func (*Server) AddRestRoute

func (s *Server) AddRestRoute(r route.RestRoute)

func (*Server) AddRoute

func (s *Server) AddRoute(r route.Route)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) (err error)

func (*Server) SetDefaultRoute

func (s *Server) SetDefaultRoute(r route.DefaultRoute)

func (*Server) SetStaticFilePath

func (s *Server) SetStaticFilePath(dir string)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL