site

package
v0.0.0-...-5e08668 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SITE_MANAGER_ID = "SiteManager"

Variables

This section is empty.

Functions

func Register

func Register(router *mux.Router, pattern string, a IAction)

Types

type IAction

type IAction interface {
	SetContainer(r *registry.Container)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

type Route

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

type SiteManager

type SiteManager struct {
	WebSite *WebSite /* Web site common type   */
	// contains filtered or unexported fields
}

func NewSiteManager

func NewSiteManager(registry *registry.Container) *SiteManager

func RestoreSiteManager

func RestoreSiteManager(r *registry.Container) *SiteManager

func (*SiteManager) ContainerMiddleware

func (self *SiteManager) ContainerMiddleware(a IAction) IAction

func (*SiteManager) GetLocation

func (self *SiteManager) GetLocation() string

func (*SiteManager) SetPort

func (self *SiteManager) SetPort(port int)

func (*SiteManager) Start

func (self *SiteManager) Start()

func (*SiteManager) Stop

func (self *SiteManager) Stop() error

type StaticAction

type StaticAction struct {
	action.Action
}

func NewStaticAction

func NewStaticAction() *StaticAction

func (*StaticAction) ServeHTTP

func (self *StaticAction) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebSite

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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