server

package
v0.0.0-...-25feab0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Addr        string
	CookieStore sessions.Store
	DB          database.Database
	CSRF        func(http.Handler) http.Handler
}

Options ...

type Server

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

Server ...

func New

func New(opt Options) *Server

New ...

func (*Server) HasStarted

func (s *Server) HasStarted() <-chan struct{}

HasStarted ...

func (*Server) HasStopped

func (s *Server) HasStopped() <-chan struct{}

HasStopped ...

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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