server

package
v0.0.0-...-49d137d Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachIndex

func AttachIndex(d *Dispatcher)

func AttachPing

func AttachPing(d *Dispatcher)

func AttachRecipeHandler

func AttachRecipeHandler(d *Dispatcher)

func AttachStyling

func AttachStyling(d *Dispatcher)

func Index

func Index(c *gin.Context)

func Ping

func Ping(c *gin.Context)

func RecipeData

func RecipeData(c *gin.Context)

func RecipeDataHtml

func RecipeDataHtml(c *gin.Context, r *model.Recipe)

func RecipeDataJson

func RecipeDataJson(c *gin.Context, r *model.Recipe)

func RecipeDataYaml

func RecipeDataYaml(c *gin.Context, r *model.Recipe)

func ScanForExtension

func ScanForExtension(dir string, ext string) ([]os.FileInfo, error)

func UnifiedStyling

func UnifiedStyling(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) AttachSupport

func (d *Dispatcher) AttachSupport()

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