model

package
v0.0.0-...-65ed424 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(server *Server)

Types

type Handler

type Handler struct {
	Id        string
	Responses map[string]*Response
}

type Response

type Response struct {
	Code        int
	Body        []byte
	ContentType string
	Delay       time.Duration
	Drop        bool
}

type Server

type Server struct {
	Addr         string
	Path         string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	Handler      http.Handler
}

Jump to

Keyboard shortcuts

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