server

package
v0.0.0-...-313ced3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CommandUp

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

Types

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{}

Jump to

Keyboard shortcuts

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