broker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package broker contains small helpers shared by message-broker plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolValue

func BoolValue(cfg map[string]any, key string, fallback bool) bool

func DurationValue

func DurationValue(cfg map[string]any, key string, fallback time.Duration) time.Duration

func IntValue

func IntValue(cfg map[string]any, key string, fallback, minValue, maxValue int) int

func PageRows

func PageRows[T ~map[string]any](rc *plugin.RequestContext, rows []T) (plugin.Page[T], error)

func SplitAddresses

func SplitAddresses(raw string, defaultPort int) ([]string, error)

func StringValue

func StringValue(cfg map[string]any, key, fallback string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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