svcconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package svcconfig holds parsing helpers shared by the mock service plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Port

func Port(config map[string]interface{}, key, fallback string) string

Port reads a port-like config value as a string; see String.

func String

func String(config map[string]interface{}, key, fallback string) string

String reads a scalar config value as a string (e.g. password: 123456 is "123456", not ignored). It returns fallback when the key is absent, empty or of another type.

func Strings

func Strings(config map[string]interface{}, key string) []string

Strings reads a list of scalars (e.g. topic or bucket names), skipping empty and non-scalar entries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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