helper

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneProtoMessage

func CloneProtoMessage(t *testing.T, src proto.Message) proto.Message

CloneProtoMessage creates a deep copy of a protobuf message.

func LoadConfigFromFile

func LoadConfigFromFile(t *testing.T, path string, msg proto.Message)

LoadConfigFromFile loads a config file into a protobuf message.

func LoadMiddlewareConfig

func LoadMiddlewareConfig(t *testing.T, configPath string) (*middlewarev1.Middlewares, error)

LoadMiddlewareConfig loads and parses middleware configuration file

func LoadYAMLConfig

func LoadYAMLConfig(filename string) ([]byte, error)

LoadYAMLConfig loads YAML configuration file and converts it to JSON format byte array

func SaveConfigToFile

func SaveConfigToFile(t *testing.T, msg proto.Message, path string, formatName string)

SaveConfigToFile saves a protobuf message to a file in the specified format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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