web

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(c WebClient) http.Handler

Types

type WebClient

type WebClient interface {
	LoadJob(jobId string) (*core.JobRecord, uint64, error)
	GetQueueStatus() (*core.QueueStatus, error)
	LoadRecentJobs(limit int) ([]*core.JobRecord, error)
	LoadResultsArtifact(job *core.JobRecord) ([]byte, error)
	LoadLogArtifact(job *core.JobRecord) ([]byte, error)
	LoadScriptArtifact(job *core.JobRecord) ([]byte, error)
}

Jump to

Keyboard shortcuts

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