github.com/0chain/gosdk@v1.17.11/constants/context_key.go (about)

     1  package constants
     2  
     3  // ContextKey type for key used to store values into context
     4  type ContextKey string
     5  
     6  const (
     7  	// ContextKeyAllocation represents key for context value for allocation
     8  	ContextKeyAllocation ContextKey = "allocation"
     9  
    10  	// ContextKeyAllocationObject represents key for context value for allocation object
    11  	ContextKeyAllocationObject ContextKey = "allocation_object"
    12  
    13  	// ContextKeyClient represents key for context value for client
    14  	ContextKeyClient ContextKey = "client"
    15  	
    16  	// ContextKeyClientKey represents key for context value for client key
    17  	ContextKeyClientKey ContextKey = "client_key"
    18  
    19  	// ContextKeyClientID represents key for context value for allocation id
    20  	ContextKeyAllocationID ContextKey = "allocation_id"
    21  
    22  	// ContextKeyClientSignatureHeaderKey represents key for context value passed with common.ClientSignatureHeader request header.
    23  	ContextKeyClientSignatureHeaderKey   ContextKey = "signature"
    24  
    25  	// ContextKeyClientSignatureHeaderV2Key represents key for context value passed with common.ClientSignatureHeaderV2 request header.
    26  	ContextKeyClientSignatureHeaderV2Key ContextKey = "signature_v2"
    27  )