shared

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package shared provides common utilities used across Moley.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartManaged added in v2.1.0

func StartManaged(ctx context.Context, r Runnable) error

func WrapError

func WrapError(err error, msg string) error

Types

type MoleyError

type MoleyError struct {
	Op  string
	Err error
	Msg string
}

func (*MoleyError) Error

func (e *MoleyError) Error() string

func (*MoleyError) Unwrap

func (e *MoleyError) Unwrap() error

type Runnable

type Runnable interface {
	Stop(ctx context.Context) error
	Start(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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