server

package
v0.0.0-...-c85e1c3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package server provides an HTTP interface to the Focus store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	API       string
	Assets    http.FileSystem
	Store     *store.Store
	Templates func(path string) ([]byte, error)
}

type Server

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

func New

func New(c Config, is *server.Server) (*Server, error)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WSConn

type WSConn struct {
	*websocket.Conn
}

func (WSConn) CancelReadTimeout

func (w WSConn) CancelReadTimeout() error

func (WSConn) CancelWriteTimeout

func (w WSConn) CancelWriteTimeout() error

func (WSConn) SetReadTimeout

func (w WSConn) SetReadTimeout(d time.Duration) error

func (WSConn) SetWriteTimeout

func (w WSConn) SetWriteTimeout(d time.Duration) error

Jump to

Keyboard shortcuts

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