server

package
v0.0.0-...-a2331ce Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContextConfiguration

func AddContextConfiguration(conf *config.Values) gin.HandlerFunc

func AttachIndex

func AttachIndex(d *Dispatcher)

func AttachPageHandler

func AttachPageHandler(d *Dispatcher)

func AttachPing

func AttachPing(d *Dispatcher)

func AttachToc

func AttachToc(d *Dispatcher)

func ContextConfig

func ContextConfig(c *gin.Context) *config.Values

func FindResourceFile

func FindResourceFile(c *gin.Context, resource string) (resource.Renderer, string)

func Index

func Index(c *gin.Context)

func IndexListing

func IndexListing(c *gin.Context)

func IndexPage

func IndexPage(c *gin.Context)

func Page

func Page(c *gin.Context)

func Ping

func Ping(c *gin.Context)

func RenderPath

func RenderPath(path string, c *gin.Context)

func SiteBaseDirectory

func SiteBaseDirectory(c *gin.Context) string

func TableOfContents

func TableOfContents(c *gin.Context)

Types

type Dispatcher

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

func CreateDispatcher

func CreateDispatcher(v *config.Values) *Dispatcher

func (*Dispatcher) AttachMiddleware

func (d *Dispatcher) AttachMiddleware()

func (*Dispatcher) AttachPages

func (d *Dispatcher) AttachPages()

func (*Dispatcher) AttachUtility

func (d *Dispatcher) AttachUtility()

func (*Dispatcher) ServerUrl

func (d *Dispatcher) ServerUrl() url.URL

func (*Dispatcher) Shutdown

func (d *Dispatcher) Shutdown()

func (*Dispatcher) Start

func (d *Dispatcher) Start()

type PingResponse

type PingResponse struct {
	Timestamp int64
	ClientIp  string
}

Jump to

Keyboard shortcuts

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