services

package
v0.0.0-...-60ec70c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterJobFlags

func RegisterJobFlags(f []cli.Flag) []cli.Flag

func RegisterWebFlags

func RegisterWebFlags(f []cli.Flag) []cli.Flag

Types

type JobMap

type JobMap struct {
	lazymap.LazyMap
	// contains filtered or unexported fields
}

func NewJobMap

func NewJobMap(c *cli.Context, cl *http.Client) *JobMap

func (*JobMap) Get

func (s *JobMap) Get(u *url.URL) error

func (*JobMap) Status

func (s *JobMap) Status(u *url.URL) (lazymap.ItemStatus, bool)

func (*JobMap) Touch

func (s *JobMap) Touch(u *url.URL) bool

type JobMapConfig

type JobMapConfig struct {
	Timeout            time.Duration
	DoneCheckInterval  time.Duration
	ErrorCheckInterval time.Duration
	DoneMarkerPath     string
	ErrorMarkerPath    string
	ErrorLogPath       string
	InvokePath         string
}

type Web

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

func NewWeb

func NewWeb(c *cli.Context, jm *JobMap) *Web

func (*Web) Close

func (s *Web) Close()

func (*Web) Serve

func (s *Web) Serve() error

Jump to

Keyboard shortcuts

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