internal

package
v0.0.0-...-bcb87c1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrWrap

func ErrWrap(e error, msg string, args ...any) error

func MD5HashHex

func MD5HashHex(b []byte) types.MD5Hash

func ReadAllWithContext

func ReadAllWithContext(ctx context.Context, r io.Reader) ([]byte, error)

ReadAllWithContext is like io.ReadAll but will cancel if ctx.Done is available, so is responsive to timeouts and cancelations.

func StartScheduler

func StartScheduler(ctx context.Context, r IRunner, interval time.Duration)

Types

type IRunner

type IRunner interface {
	Run(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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