fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPluginServer

func NewPluginServer(cfg PluginConfig) (string, func() error)

NewPluginServer return function to start the fake plugin HTTP server.

Types

type PluginConfig

type PluginConfig struct {
	BinariesDirectory string
	Server            PluginServer
}

PluginConfig holds configuration for fake plugin server.

type PluginServer

type PluginServer struct {
	Host string `envconfig:"default=http://host.k3d.internal"`
	Port int    `envconfig:"default=3000"`
}

PluginServer holds configuration for HTTP plugin server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳