Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetSubroute (0.07 sec)

  1. internal/grid/handlers.go

    func GetCaller(ctx context.Context) *RemoteClient {
    	val, _ := ctx.Value(ctxCallerKey{}).(*RemoteClient)
    	return val
    }
    
    // GetSubroute returns caller information from contexts provided to handlers.
    func GetSubroute(ctx context.Context) string {
    	//nolint:staticcheck // SA1029 Staticcheck is drunk.
    	val, _ := ctx.Value(ctxSubrouteKey{}).(string)
    	return val
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top