Documentation ¶
Index ¶
- Variables
- func AppendError(err, e error) error
- func Cache[K comparable, V any](f func(in K) V) func(in K) V
- func Done()
- func NewDebugServer(addr string)
- func RunCommand(ctx context.Context, name string, args []string, stdin io.Reader, ...) (<-chan error, error)
- func ThreadUnsafeCache[K comparable, V any](f func(in K) V) func(in K) V
- func UnpaddingInt8s(buf []int8) string
- func Wait()
- func WithoutTimeout(ctx context.Context) context.Context
- func Working()
- func Wrap(ctx context.Context, f func())
- func WrapWithLogger(ctx context.Context, logger *logrus.Logger, f func())
- type CacheOnce
- type FileSystem
- type Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ShutdownContext context.Context
)
Functions ¶
func AppendError ¶
func Cache ¶
func Cache[K comparable, V any](f func(in K) V) func(in K) V
func RunCommand ¶
func ThreadUnsafeCache ¶ added in v0.1.14
func ThreadUnsafeCache[K comparable, V any](f func(in K) V) func(in K) V
func UnpaddingInt8s ¶
func WithoutTimeout ¶
WithoutCancel returns a context that is never canceled.
Types ¶
type CacheOnce ¶ added in v0.1.14
type CacheOnce[K comparable, V any] struct { // contains filtered or unexported fields }
func NewCacheOnce ¶ added in v0.1.14
type FileSystem ¶
func GetFileSystem ¶
func GetFileSystem(path string) (*FileSystem, error)
Click to show internal directories.
Click to hide internal directories.