testschemaviewer

package
v0.0.38-alpha1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 2 Imported by: 0

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

GetViewer returns the logged in entity

func (*TestschemaViewerContext) GetViewerID

func (v *TestschemaViewerContext) GetViewerID() string

GetViewerID returns the ID of the logged in viewer

Jump to

Keyboard shortcuts

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