site2

package
v0.0.0-...-b45fbc0 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 SITE2_MANAGER_ID = "Site2Manager"

Variables

This section is empty.

Functions

func Register

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

Types

type IndexAction

type IndexAction struct {
	api.Action
}

func NewIndexAction

func NewIndexAction() *IndexAction

func (*IndexAction) ServeHTTP

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

type PublicAction

type PublicAction struct {
	api.Action
}

func NewPublicAction

func NewPublicAction() *PublicAction

func (*PublicAction) ServeHTTP

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

type Route

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

type Site2Manager

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

func NewSite2Manager

func NewSite2Manager(registry *registry.Container) *Site2Manager

func RestoreSite2Manager

func RestoreSite2Manager(r *registry.Container) *Site2Manager

func (*Site2Manager) ContainerMiddleware

func (self *Site2Manager) ContainerMiddleware(a api2.IAction) api2.IAction

func (*Site2Manager) GetLocation

func (self *Site2Manager) GetLocation() string

func (*Site2Manager) SetPort

func (self *Site2Manager) SetPort(port int)

func (*Site2Manager) Start

func (self *Site2Manager) Start()

func (*Site2Manager) Stop

func (self *Site2Manager) Stop() error

type StaticAction

type StaticAction struct {
	api.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