model

package
v0.0.0-...-4e89a12 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEndpoints

func ReadEndpoints(filename string) (map[string]string, error)

readEndpoints reads the endpoints from the given file and returns a map[api]responseFilePath

Types

type Endpoint

type Endpoint struct {
	API          string
	ResponseFile string
}

type Endpoints

type Endpoints struct {
	Endpoints []Endpoint
}

func LoadModel

func LoadModel() *Endpoints

func NewModel

func NewModel() *Endpoints

func (*Endpoints) AddEndpoint

func (m *Endpoints) AddEndpoint(e Endpoint)

func (*Endpoints) GetEndpoints

func (m *Endpoints) GetEndpoints() []Endpoint

Jump to

Keyboard shortcuts

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