Documentation ¶
Index ¶
- type ApiManagerCtx
- func (api *ApiManagerCtx) AddRouter(path string, router func(types.Router))
- func (api *ApiManagerCtx) Authenticate(w http.ResponseWriter, r *http.Request) (context.Context, error)
- func (api *ApiManagerCtx) Login(w http.ResponseWriter, r *http.Request) error
- func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) error
- func (api *ApiManagerCtx) Route(r types.Router)
- func (api *ApiManagerCtx) Sessions(w http.ResponseWriter, r *http.Request) error
- func (api *ApiManagerCtx) Whoami(w http.ResponseWriter, r *http.Request) error
- type SessionDataPayload
- type SessionLoginPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiManagerCtx ¶
type ApiManagerCtx struct {
// contains filtered or unexported fields
}
func New ¶
func New( sessions types.SessionManager, members types.MemberManager, desktop types.DesktopManager, capture types.CaptureManager, ) *ApiManagerCtx
func (*ApiManagerCtx) AddRouter ¶
func (api *ApiManagerCtx) AddRouter(path string, router func(types.Router))
func (*ApiManagerCtx) Authenticate ¶
func (api *ApiManagerCtx) Authenticate(w http.ResponseWriter, r *http.Request) (context.Context, error)
func (*ApiManagerCtx) Login ¶
func (api *ApiManagerCtx) Login(w http.ResponseWriter, r *http.Request) error
func (*ApiManagerCtx) Logout ¶
func (api *ApiManagerCtx) Logout(w http.ResponseWriter, r *http.Request) error
func (*ApiManagerCtx) Route ¶
func (api *ApiManagerCtx) Route(r types.Router)
func (*ApiManagerCtx) Sessions ¶ added in v1.6.12
func (api *ApiManagerCtx) Sessions(w http.ResponseWriter, r *http.Request) error
func (*ApiManagerCtx) Whoami ¶
func (api *ApiManagerCtx) Whoami(w http.ResponseWriter, r *http.Request) error
type SessionDataPayload ¶
type SessionDataPayload struct { ID string `json:"id"` Token string `json:"token,omitempty"` Profile types.MemberProfile `json:"profile"` State types.SessionState `json:"state"` }
type SessionLoginPayload ¶
Click to show internal directories.
Click to hide internal directories.