Documentation
¶
Overview ¶
Package broker contains small helpers shared by message-broker plugins.
Index ¶
- func BoolValue(cfg map[string]any, key string, fallback bool) bool
- func DurationValue(cfg map[string]any, key string, fallback time.Duration) time.Duration
- func IntValue(cfg map[string]any, key string, fallback, minValue, maxValue int) int
- func PageRows[T ~map[string]any](rc *plugin.RequestContext, rows []T) (plugin.Page[T], error)
- func SplitAddresses(raw string, defaultPort int) ([]string, error)
- func StringValue(cfg map[string]any, key, fallback string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationValue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.