package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Nov 3, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewContext returns a copy of parent context with the given Viewer attached with it.
Role for viewer actions.
const (
Admin Role
View
)
List of roles.
UserViewer describes a user-viewer.
type Viewer interface {
Admin() bool
Tenant() string
}
Viewer describes the query/mutation viewer-context.
FromContext returns the Viewer stored in a context.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.