front

package
v0.0.0-...-eedcae6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	storage.Storage

	*HttpTpl
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(ctx context.Context, options *Options, s storage.Storage) (res *Handlers, err error)

func (*Handlers) HandleBarExe

func (h *Handlers) HandleBarExe(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleExportBat

func (h *Handlers) HandleExportBat(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleFront

func (h *Handlers) HandleFront(w http.ResponseWriter, r *http.Request)

http://_:_/

func (*Handlers) HandleImportBat

func (h *Handlers) HandleImportBat(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleSpec

func (h *Handlers) HandleSpec(w http.ResponseWriter, r *http.Request)

type HttpTpl

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

weird. needs refactoring

func NewHttpTpls

func NewHttpTpls() (res *HttpTpl, err error)

type Options

type Options struct {
	Info   *proto.ServerInfo
	Bind   string
	BinDir string
}

type Server

type Server struct {
	net.Listener
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, opts *Options, stor storage.Storage) (res *Server)

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Stop

func (s *Server) Stop() (err error)

Jump to

Keyboard shortcuts

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