sessionserver

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: 19 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionServer

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

func NewSessionServer

func NewSessionServer(authClient *authclient.AuthClient, accessCodeClient *accesscode.AccessCodeClient, scenarioClient *scenarioclient.ScenarioClient, courseClient *courseclient.CourseClient, hfClientSet hfClientset.Interface, hfInformerFactory hfInformers.SharedInformerFactory, ctx context.Context) (*SessionServer, error)

func (SessionServer) CreateProgress added in v1.0.0

func (sss SessionServer) CreateProgress(sessionId string, scheduledEventId string, scenarioId string, courseId string, userId string, totalSteps int)

func (SessionServer) FinishProgress added in v1.0.0

func (sss SessionServer) FinishProgress(sessionId string, userId string)

func (SessionServer) FinishedSessionFunc

func (sss SessionServer) FinishedSessionFunc(w http.ResponseWriter, r *http.Request)

func (SessionServer) GetSessionById

func (sss SessionServer) GetSessionById(id string) (hfv1.Session, error)

func (SessionServer) GetSessionFunc

func (sss SessionServer) GetSessionFunc(w http.ResponseWriter, r *http.Request)

func (SessionServer) KeepAliveSessionFunc

func (sss SessionServer) KeepAliveSessionFunc(w http.ResponseWriter, r *http.Request)

func (SessionServer) NewSessionFunc

func (sss SessionServer) NewSessionFunc(w http.ResponseWriter, r *http.Request)

func (SessionServer) PauseSessionFunc

func (sss SessionServer) PauseSessionFunc(w http.ResponseWriter, r *http.Request)

func (SessionServer) ResumeSessionFunc

func (sss SessionServer) ResumeSessionFunc(w http.ResponseWriter, r *http.Request)

func (SessionServer) SetupRoutes

func (sss SessionServer) SetupRoutes(r *mux.Router)

Jump to

Keyboard shortcuts

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