arinos

package module
v0.0.0-...-2523132 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 6 Imported by: 0

README

arinos

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arinos

type Arinos struct {
	LocalHost bool
	Options   *Options
	Router    *Router
}

func New

func New(isLocalhost bool, options ...Option) (arinos *Arinos)

func (*Arinos) StartServe

func (arinos *Arinos) StartServe() error

Mock

type Handle

type Handle func(http.ResponseWriter, *http.Request, url.Values)

type Option

type Option func(*Options)

func Port

func Port(portNumber int) Option

type Options

type Options struct {
	Port int
}

type Router

type Router struct {
	Tree *node
}

func NewRouter

func NewRouter() *Router

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳