http

package
v0.0.0-...-be6fd2f Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFn

type OptionFn func(*Server)

OptionFn Functional option type

func Listener

func Listener(s string) OptionFn

Listener Set bind address

func UseStorage

func UseStorage(s storage.Storage) OptionFn

UseStorage Set storage type

type Server

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

Server HTTP Server struct

func New

func New(options ...OptionFn) (*Server, error)

New HTTP Server factory

func (*Server) Run

func (s *Server) Run()

Run Start the server

Jump to

Keyboard shortcuts

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