Documentation ¶
Index ¶
- type Info
- type Subdomains
- func (s *Subdomains) Add(name string, e *echo.Echo) *Subdomains
- func (s *Subdomains) FindByDomain(host string) (*echo.Echo, bool)
- func (s *Subdomains) Get(args ...string) *Info
- func (s *Subdomains) Run(args ...interface{})
- func (s *Subdomains) ServeHTTP(r engine.Request, w engine.Response)
- func (s *Subdomains) URL(purl string, args ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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{})
Click to show internal directories.
Click to hide internal directories.