Documentation ¶
Index ¶
- func AddWalletIDToContext(ctx context.Context, walletID uuid.UUID)
- func FromContext(ctx context.Context) *zerolog.Logger
- func Logger(ctx context.Context, prefix string) *zerolog.Logger
- func ReportProgress(ctx context.Context, progressDuration time.Duration) chan Progress
- func SetupLogger(ctx context.Context) (context.Context, *zerolog.Logger)
- func SetupLoggerWithLevel(ctx context.Context, level zerolog.Level) (context.Context, *zerolog.Logger)
- func SubmitProgress(ctx context.Context, processed, total int)
- func UpholdReportProgress(ctx context.Context, progressDuration time.Duration) chan UpholdProgressSet
- func UpholdSubmitProgress(ctx context.Context, progressSet UpholdProgressSet)
- type Progress
- type UpholdProgress
- type UpholdProgressSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWalletIDToContext ¶
AddWalletIDToContext adds wallet id to context
func FromContext ¶
FromContext - retrieves logger from context or gets a new logger if not present
func ReportProgress ¶
ReportProgress - goroutine watching for Progress updates for logging
func SetupLogger ¶
SetupLogger - helper to setup a logger and associate with context
func SetupLoggerWithLevel ¶
func SetupLoggerWithLevel(ctx context.Context, level zerolog.Level) (context.Context, *zerolog.Logger)
SetupLoggerWithLevel - helper to setup a logger and associate with context with a given log level
func SubmitProgress ¶
SubmitProgress - helper to log progress
func UpholdReportProgress ¶
func UpholdReportProgress(ctx context.Context, progressDuration time.Duration) chan UpholdProgressSet
UpholdReportProgress - goroutine watching for UpholdProgress updates for logging
func UpholdSubmitProgress ¶
func UpholdSubmitProgress(ctx context.Context, progressSet UpholdProgressSet)
UpholdSubmitProgress - helper to log progress
Types ¶
type UpholdProgress ¶
UpholdProgress - type to store the incremental progress of an Uphold transaction set
type UpholdProgressSet ¶
type UpholdProgressSet struct {
Progress []UpholdProgress
}
UpholdProgressSet - set of progress updates