modelserver

package
v0.0.0-...-a1cdf17 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(cfg Config)

Types

type Config

type Config struct {
	PkgDir string
	Port   string
}

func (Config) GetHandlerFunc

func (c Config) GetHandlerFunc() HandlerFunction

func (Config) GetRouter

func (c Config) GetRouter() *mux.Router

func (Config) RenderResponse

func (c Config) RenderResponse(w http.ResponseWriter, r *http.Request, users Users)

type HandlerFunction

type HandlerFunction func(http.ResponseWriter, *http.Request)

type RouterProvider

type RouterProvider interface {
	GetRouter() *mux.Router
	GetHandlerFunc() HandlerFunction
}

type UserData

type UserData struct {
	User string
	Data map[string]string
}

type Users

type Users struct {
	UsersList []UserData
}

Jump to

Keyboard shortcuts

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