config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyWiremockConfigErr = fmt.Errorf("empty wiremock config")

	NoCorrespondingAPIErr = fmt.Errorf("no API corresponding to the provided domain")
)

Functions

This section is empty.

Types

type Ports

type Ports []int

func GatherPorts

func GatherPorts(wiremock Wiremock) Ports

func (Ports) Allocate

func (p Ports) Allocate() int

type Service

type Service struct {
	Name    string `json:"name"`
	Port    int    `json:"port"`
	RootDir string `json:"rootDir"`
}

func NewService

func NewService(root, domain string, port int) Service

type Wiremock

type Wiremock struct {
	Services []Service `json:"services"`
}

Jump to

Keyboard shortcuts

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