Back to godoc.org

Package server

v0.0.0-...-ba08d85
Latest Go to latest

The latest major version is .

Published: Sep 1, 2020 | License: MIT | Module: github.com/jamesbee/srv

Index

Variables

var (
	UseTLS         bool
	EnableMarkdown bool
	Port           int
	Host           string
	Static         string
	Cert           string
	Key            string
	Exclude        []string
)

func CommandUp

func CommandUp(cmd *cobra.Command, args []string)

type Engine

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

func NewEngine

func NewEngine() *Engine

func (*Engine) Listen

func (e *Engine) Listen(addr string)

func (*Engine) ListenTLS

func (e *Engine) ListenTLS(addr, cert, key string)

func (*Engine) Serve

func (e *Engine) Serve(source ...string) *Engine

Serve generate url for given files or directories

func (*Engine) ServeDirs

func (e *Engine) ServeDirs() *Engine

func (*Engine) ServeFiles

func (e *Engine) ServeFiles() *Engine

type H

type H map[string]interface{}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier