Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFailedToGetPeerFromContext = errors.New("failed to get peer from context")
)
Functions ¶
func GetClientIP ¶
GetClientIP extracts the client IP address from the context
Parameters:
- ctx: The context from which to extract the client IP address
Returns:
- string: The client IP address
- error: An error if the IP address could not be extracted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.