proxy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {

	// Interval between 2 server queries
	SyncInterval time.Duration

	// Clean files
	Clean bool
	// Background sync
	Sync bool
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(path string, server_url string) (proxy *Proxy, err error)

NewProxy is the default call to create a proxy

func NewProxyParams

func NewProxyParams(path string, server_url string, interval time.Duration, clean bool, sync bool) (proxy *Proxy, err error)

NewProxyParams is the customizable function

func (*Proxy) Ready

func (p *Proxy) Ready() bool

func (*Proxy) Router

func (p *Proxy) Router() http.Handler

func (*Proxy) Run

func (p *Proxy) Run() (err error)

Start server loop

func (*Proxy) Running added in v0.2.0

func (p *Proxy) Running() bool

func (*Proxy) Stop

func (p *Proxy) Stop()

Jump to

Keyboard shortcuts

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