Discover Packages
github.com/nginx/nginx-gateway-fabric/v2
internal
controller
nginx
agent
grpc
context
package
Version:
v2.1.3
Opens a new window with list of versions in this module.
Published: Oct 1, 2025
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
Documentation
¶
Package context contains the functions for storing extra information in the gRPC context.
NewGrpcContext returns a new context.Context that has the provided GrpcInfo attached.
type GrpcInfo struct {
Token string `json:"token"`
IPAddress string `json:"ip_address"`
}
GrpcInfo for storing identity information for the gRPC client.
GrpcInfoFromContext returns the GrpcInfo saved in ctx if it exists.
Returns false if there's no GrpcInfo in the context.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.