sctx

package
v0.0.0-...-9fdd194 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package sctx provides convenience methods for context value injection and extraction.

Index

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

func GetGasLimit(ctx context.Context) uint64

func GetGasPrice

func GetGasPrice(ctx context.Context) *big.Int

func SetGasLimit

func SetGasLimit(ctx context.Context, limit uint64) context.Context

func SetGasPrice

func SetGasPrice(ctx context.Context, price *big.Int) context.Context

Types

type HTTPRequestIDKey

type HTTPRequestIDKey struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL