package
Version:
v0.0.0-...-a1dc8d7
Opens a new window with list of versions in this module.
Published: Nov 18, 2024
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() (int, 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.