Discover Packages
github.com/shellhub-io/shellhub
pkg
api
identity
identitytest
package
Version:
v0.30.3
Opens a new window with list of versions in this module.
Published: Nov 11, 2026
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
Documentation
¶
Package identitytest stands in for the authentication middleware in tests that drive a router
built without it.
As returns req carrying caller as its authenticated identity.
Serve returns next serving every request as caller, for a test that reaches the handler over a
real connection, where no context crosses from the client.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.