Documentation
¶
Index ¶
- Constants
- type SessionServer
- func (sss SessionServer) CreateProgress(sessionId string, scheduledEventId string, scenarioId string, courseId string, ...)
- func (sss SessionServer) FinishProgress(sessionId string, userId string)
- func (sss SessionServer) FinishedSessionFunc(w http.ResponseWriter, r *http.Request)
- func (sss SessionServer) GetSessionById(id string) (hfv1.Session, error)
- func (sss SessionServer) GetSessionFunc(w http.ResponseWriter, r *http.Request)
- func (sss SessionServer) KeepAliveSessionFunc(w http.ResponseWriter, r *http.Request)
- func (sss SessionServer) NewSessionFunc(w http.ResponseWriter, r *http.Request)
- func (sss SessionServer) PauseSessionFunc(w http.ResponseWriter, r *http.Request)
- func (sss SessionServer) ResumeSessionFunc(w http.ResponseWriter, r *http.Request)
- func (sss SessionServer) SetupRoutes(r *mux.Router)
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 (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)
Click to show internal directories.
Click to hide internal directories.