Documentation ¶
Overview ¶
Package sctx provides convenience methods for context value injection and extraction.
Index ¶
- Variables
- func GetGasLimit(ctx context.Context) uint64
- func GetGasPrice(ctx context.Context) *big.Int
- func GetHost(ctx context.Context) string
- func GetTag(ctx context.Context) *tags.Tag
- func GetTargets(ctx context.Context) pss.Targets
- 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
- func SetTag(ctx context.Context, tagId *tags.Tag) context.Context
- func SetTargets(ctx context.Context, targets 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 ¶
func GetTargets ¶
GetTargets returns the specific target pinners for a corresponding chunk by reading the prefix targets sent in the download API.
Types ¶
type HTTPRequestIDKey ¶
type HTTPRequestIDKey struct{}
Click to show internal directories.
Click to hide internal directories.