progressserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScheduledEventLabel = "hobbyfarm.io/scheduledevent"
	SessionLabel        = "hobbyfarm.io/session"
	UserLabel           = "hobbyfarm.io/user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminPreparedProgress

type AdminPreparedProgress struct {
	Session string `json:"session"`
	hfv1.ProgressSpec
}

type ProgressServer

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

func NewProgressServer

func NewProgressServer(authClient *authclient.AuthClient, hfClientset hfClientset.Interface, ctx context.Context) (*ProgressServer, error)

func (ProgressServer) CountByScheduledEvent

func (s ProgressServer) CountByScheduledEvent(w http.ResponseWriter, r *http.Request)

func (ProgressServer) ListByLabel

func (s ProgressServer) ListByLabel(w http.ResponseWriter, r *http.Request, label string, value string, includeFinished bool)

func (ProgressServer) ListByScheduledEventFunc

func (s ProgressServer) ListByScheduledEventFunc(w http.ResponseWriter, r *http.Request)

List Progress by Scheduled Event

Vars:
- id : The scheduled event id

func (ProgressServer) ListByUserFunc

func (s ProgressServer) ListByUserFunc(w http.ResponseWriter, r *http.Request)

List Progress by User

Vars:
- id : The user id

func (ProgressServer) ListForUserFunc

func (s ProgressServer) ListForUserFunc(w http.ResponseWriter, r *http.Request)

List Progress for the authenticated user

func (ProgressServer) SetupRoutes

func (s ProgressServer) SetupRoutes(r *mux.Router)

func (ProgressServer) Update

func (s ProgressServer) Update(w http.ResponseWriter, r *http.Request)

Update Progress

Vars:
- id : Session linked to the progress resource

type ScheduledEventProgressCount

type ScheduledEventProgressCount struct {
	CountMap map[string]int `json:"count_map"`
}

Jump to

Keyboard shortcuts

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