package
Version:
v0.11.4
Opens a new window with list of versions in this module.
Published: Oct 29, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
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.
type UserViewer struct {
Role Role
}
UserViewer describes a user-viewer.
type Viewer interface {
Admin() bool
}
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.