livereloadproxy

package
v0.0.0-...-eddcbdb Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LivereloadProxy

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

func NewLivereloadProxy

func NewLivereloadProxy(cfg config.Config) *LivereloadProxy

func (*LivereloadProxy) AddTask

func (lrp *LivereloadProxy) AddTask(name string, taskConfig config.Task)

func (*LivereloadProxy) Run

func (lrp *LivereloadProxy) Run()

func (*LivereloadProxy) SetProxy

func (lrp *LivereloadProxy) SetProxy(proxy config.Proxy, source config.Source)

func (*LivereloadProxy) Stop

func (lrp *LivereloadProxy) Stop()

type Proxy

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

func NewProxy

func NewProxy(proxyConfig config.Proxy, sourceConfig config.Source) *Proxy

func (*Proxy) AddSourceReplacer

func (p *Proxy) AddSourceReplacer(replaceConfig config.Replace)

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) Reload

func (p *Proxy) Reload(message string)

func (*Proxy) Run

func (p *Proxy) Run()

type ProxyBody

type ProxyBody struct {
	Body io.ReadCloser
}

func (*ProxyBody) FindFirstChild

func (pb *ProxyBody) FindFirstChild(node *html.Node, a atom.Atom) *html.Node

type RetryTransport

type RetryTransport struct {
}

func (*RetryTransport) RoundTrip

func (rt *RetryTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Router

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

func NewRouter

func NewRouter() *Router

func (*Router) Handle

func (h *Router) Handle(pattern string, handler http.Handler)

func (*Router) HandleFunc

func (h *Router) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))

func (*Router) ServeHTTP

func (h *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SourceRegexpReplacer

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

func NewSourceRegexpReplacer

func NewSourceRegexpReplacer(search string, replace string) *SourceRegexpReplacer

func (*SourceRegexpReplacer) Replace

func (s *SourceRegexpReplacer) Replace(value string) string

type SourceReplacer

type SourceReplacer interface {
	Replace(string) string
}

func NewSourceReplacer

func NewSourceReplacer(replaceConfig config.Replace) SourceReplacer

type SourceStringReplacer

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

func NewSourceStringReplacer

func NewSourceStringReplacer(search string, replace string) *SourceStringReplacer

func (*SourceStringReplacer) Replace

func (s *SourceStringReplacer) Replace(value string) string

type Task

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

func NewTask

func NewTask(name string, proxy *Proxy, taskConfig config.Task) *Task

func (*Task) AddCommand

func (t *Task) AddCommand(commandName string, commandConfig config.Command)

func (*Task) Callback

func (t *Task) Callback(message string)

func (*Task) Run

func (t *Task) Run()

func (*Task) SetMonitor

func (t *Task) SetMonitor(monitorConfig config.Monitor)

func (*Task) Stop

func (t *Task) Stop()

Jump to

Keyboard shortcuts

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