subdomains

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 87

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Name string
	Host string
	*echo.Echo
}

type Subdomains

type Subdomains struct {
	Hosts    map[string]*echo.Echo
	Alias    map[string]*Info
	Default  string //default name
	Protocol string //http/https
}

func New

func New() *Subdomains

func (*Subdomains) Add

func (s *Subdomains) Add(name string, e *echo.Echo) *Subdomains

func (*Subdomains) FindByDomain

func (s *Subdomains) FindByDomain(host string) (*echo.Echo, bool)

func (*Subdomains) Get

func (s *Subdomains) Get(args ...string) *Info

func (*Subdomains) Run

func (s *Subdomains) Run(args ...interface{})

func (*Subdomains) ServeHTTP

func (s *Subdomains) ServeHTTP(r engine.Request, w engine.Response)

func (*Subdomains) URL

func (s *Subdomains) URL(purl string, args ...string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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