controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHeartbeatTime = time.Minute
)

Variables

This section is empty.

Functions

func New

func New(config *ServerConfig) lib.Server

func NewProxyClient

func NewProxyClient(host string) *http.Client

Types

type Server

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

func (*Server) CacheAvailable

func (s *Server) CacheAvailable() bool

func (*Server) Close

func (s *Server) Close() error

func (*Server) Listener

func (s *Server) Listener() net.Listener

func (*Server) Open

func (s *Server) Open(addr string) (net.Listener, error)

func (*Server) Running

func (s *Server) Running() bool

func (*Server) ServeHTTP

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

func (*Server) ServeHTTPUnsafe

func (s *Server) ServeHTTPUnsafe(w http.ResponseWriter, req *http.Request)

func (*Server) WaitGroup

func (s *Server) WaitGroup() *sync.WaitGroup

func (*Server) WebAvailable

func (s *Server) WebAvailable() bool

type ServerConfig

type ServerConfig struct {
	CacheAddr     string
	DefaultClient *http.Client
	CacheClient   *http.Client
	WebAddr       string
	WebHost       string
}

Jump to

Keyboard shortcuts

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