Documentation ¶
Overview ¶
Package sctx provides convenience methods for context value injection and extraction.
Index ¶
- Variables
- func GetGasLimit(ctx context.Context) uint64
- func GetGasLimitWithDefault(ctx context.Context, defaultLimit uint64) uint64
- func GetGasPrice(ctx context.Context) *big.Int
- func GetHost(ctx context.Context) string
- func SetGasLimit(ctx context.Context, limit uint64) context.Context
- func SetGasPrice(ctx context.Context, price *big.Int) context.Context
- func SetHost(ctx context.Context, domain string) context.Context
- type HTTPRequestIDKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTargetPrefix is returned when target prefix decoding fails. ErrTargetPrefix = errors.New("error decoding prefix string") )
Functions ¶
func GetGasLimit ¶ added in v0.5.3
func GetGasLimitWithDefault ¶ added in v1.9.0
func SetGasLimit ¶ added in v0.5.3
func SetGasPrice ¶ added in v0.5.3
Types ¶
type HTTPRequestIDKey ¶
type HTTPRequestIDKey struct{}
Click to show internal directories.
Click to hide internal directories.