static

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	sync.RWMutex
	Enabled bool
	// contains filtered or unexported fields
}

Module is responsible for static

func Init

func Init() *Module

Init returns a new instance of the static module wit default values

func (*Module) SelectRoute

func (m *Module) SelectRoute(host, url string) (*config.StaticRoute, bool)

SelectRoute select the rules for a given request

func (*Module) SetConfig

func (m *Module) SetConfig(s *config.Static) error

SetConfig set the config required by the static module

Jump to

Keyboard shortcuts

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