taskcommon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package taskcommon provides shared utilities for task providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeLocalTaskID

func DecodeLocalTaskID(localID string) (string, error)

DecodeLocalTaskID decodes a local task ID back into the upstream task ID. In library mode this is an identity function.

func DefaultInt

func DefaultInt(val, fallback int) int

DefaultInt returns val if non-zero, otherwise fallback.

func DefaultString

func DefaultString(val, fallback string) string

DefaultString returns val if non-empty, otherwise fallback.

func EncodeLocalTaskID

func EncodeLocalTaskID(upstreamID string) string

EncodeLocalTaskID encodes an upstream task ID into a local task ID. In library mode this is an identity function.

func UnmarshalMetadata

func UnmarshalMetadata(metadata map[string]any, target any) error

UnmarshalMetadata converts a map[string]any metadata to a typed struct via JSON round-trip.

Types

type BaseBilling

type BaseBilling struct{}

BaseBilling is a stub for LingRein's billing base struct. In library mode, billing is not supported; embed this to satisfy adaptor struct layouts without pulling in billing logic.

Jump to

Keyboard shortcuts

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