Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewViewerContext ¶
func NewViewerContext(viewerID string) (viewer.ViewerContext, error)
NewViewerContext takes a viewer id and returns a viewer context mapping to said user
Types ¶
type TestschemaViewerContext ¶
type TestschemaViewerContext struct {
// contains filtered or unexported fields
}
TestschemaViewerContext represents who's logged in (if any) at any given time
func (*TestschemaViewerContext) GetUser ¶
func (v *TestschemaViewerContext) GetUser() *models.User
GetUser returns the User associated with TestschemaViewerContext
func (*TestschemaViewerContext) GetViewer ¶
func (v *TestschemaViewerContext) GetViewer() viewer.LoggedInEntity
GetViewer returns the logged in entity
func (*TestschemaViewerContext) GetViewerID ¶
func (v *TestschemaViewerContext) GetViewerID() string
GetViewerID returns the ID of the logged in viewer
Click to show internal directories.
Click to hide internal directories.