Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonSession ¶
type AnonSession struct { ID string `jsonapi:"primary,session"` SomethingExtra string `jsonapi:"attr,something_extra"` }
AnonSession anon session data
func (AnonSession) JSONAPILinks ¶
func (sess AnonSession) JSONAPILinks() *jsonapi.Links
JSONAPILinks links for the session json
func (AnonSession) JSONAPIMeta ¶
func (sess AnonSession) JSONAPIMeta() *jsonapi.Meta
JSONAPIMeta links for the session json
type AuthSession ¶
type AuthSession struct { ID string `jsonapi:"primary,session"` SomethingExtra string `jsonapi:"attr,something_extra"` User *models.User `jsonapi:"relation,user"` }
AuthSession authenticated user session data
func (AuthSession) JSONAPILinks ¶
func (sess AuthSession) JSONAPILinks() *jsonapi.Links
JSONAPILinks links for the session json
func (AuthSession) JSONAPIMeta ¶
func (sess AuthSession) JSONAPIMeta() *jsonapi.Meta
JSONAPIMeta links for the session json
Click to show internal directories.
Click to hide internal directories.