servers

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Requirement

type Requirement struct {
	Type      Type
	Port      int
	Name      string
	IsMain    bool
	BasicAuth bool
}

type Requirements

type Requirements []Requirement

type Servers

type Servers struct {
	Svrs []svr
}

func New

func New(requirements Requirements) *Servers

func (*Servers) Close

func (s *Servers) Close()

func (*Servers) GetDatasources

func (s *Servers) GetDatasources() []model.Datasource

func (*Servers) GetServersByType

func (s *Servers) GetServersByType(typ Type) (servers []*mocker.Server)

type Type

type Type int
const (
	TypeAlertmanager Type = iota
	TypeLethe
	TypePrometheus
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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