Documentation
¶
Index ¶
- func BuildIDFromContext(ctx context.Context) (gocql.UUID, bool)
- func IsCancelled(done <-chan struct{}) bool
- func NRTxnFromContext(ctx context.Context) (newrelic.Transaction, bool)
- func NewBuildIDContext(ctx context.Context, id gocql.UUID, txn newrelic.Transaction) context.Context
- func NewNRTxnContext(ctx context.Context, txn newrelic.Transaction) context.Context
- func NewPushStartedContext(ctx context.Context) context.Context
- func PushStartedFromContext(ctx context.Context) (time.Time, bool)
- func StartedFromContext(ctx context.Context) (time.Time, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIDFromContext ¶
BuildIDFromContext returns the ID stored in ctx, if any
func IsCancelled ¶
func IsCancelled(done <-chan struct{}) bool
IsCancelled checks if the provided done channel is closed
func NRTxnFromContext ¶
func NRTxnFromContext(ctx context.Context) (newrelic.Transaction, bool)
NRTxnFromContext returns the New Relic transaction stored in ctx, if any
func NewBuildIDContext ¶
func NewBuildIDContext(ctx context.Context, id gocql.UUID, txn newrelic.Transaction) context.Context
NewBuildIDContext returns a context with the current build ID and time started stored as values
func NewNRTxnContext ¶
NewNRTxnContext returnsa context with the current New Relic transaction stored as a value
func NewPushStartedContext ¶
NewPushStartedContext returns a context with the push started timestamp stored as a value
func PushStartedFromContext ¶
PushStartedFromContext returns the time the push started stored in ctx, if any
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.