server

package
v0.0.0-...-394df1e Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a server for the pullsheet web app.

func New

func New(ctx context.Context, c *client.Client, initJob *job.Job) *Server

New creates a new server.

func (*Server) AddJob

func (s *Server) AddJob(ctx context.Context, j *job.Job)

AddJob adds a job to the server

func (*Server) Healthz

func (s *Server) Healthz() http.HandlerFunc

Healthz returns a dummy healthz page - it's always happy here!

func (*Server) Home

func (s *Server) Home() http.HandlerFunc

Home returns the home page

func (*Server) Job

func (s *Server) Job() http.HandlerFunc

Job returns a job page

func (*Server) NewJob

func (s *Server) NewJob() http.HandlerFunc

NewJob creates a new job

func (*Server) Root

func (s *Server) Root() http.HandlerFunc

Root redirects to home page

func (*Server) Threadz

func (s *Server) Threadz() http.HandlerFunc

Threadz returns a threadz page

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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