Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*testServerConfig)
Option is a function that modifies the server configuration.
func CaptureLogToWriter ¶
CaptureLogToWriter is an option that allows the caller to capture the log output from the server to a writer. This is useful for testing the log output of the server inside the tests, if needed.
func WithAPIBundle ¶
WithAPIBundle allows the caller to pass in a custom API bundle to the server. If one API bundle is provided, it will overwrite the default API bundles. If multiple API bundles are provided, they will be appended.
func WithConfig ¶
WithConfig allows the caller to pass in a custom configuration for the server from an existing configura.Config.
Click to show internal directories.
Click to hide internal directories.