model

package
v0.0.0-...-aa28848 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDispatcher

func StartDispatcher(nworkers int, WorkQueue chan Job, backend *fs.Backend)

Dispatcher function to spawn a number of workers

func StartWorker

func StartWorker(WorkQueue chan Job, backend *fs.Backend)

Types

type Context

type Context struct {
	TemplateBox *rice.Box
	StaticBox   *rice.Box
	Baseurl     string
	Log         *log.Logger
	WorkQueue   chan Job
	Backend     *fs.Backend
	Metrics     *metrics.Metrics
	Events      *events.Events
	Tokens      *tokens.Tokens
	Token       string
	RemoteAddr  string
}

type Job

type Job struct {
	Bin      string
	Filename string
	Log      *log.Logger
	Cfg      *config.Configuration
}
type Link struct {
	Rel  string
	Href string
}

Jump to

Keyboard shortcuts

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