parameter

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter struct {
	ID    string `json:"ID"`
	Value string `json:"value"`
}

Parameter defines the properties of a parameter

type Repository

type Repository interface {
	// FetchParameters return all parameters saved in storage
	FetchParameters() ([]*Parameter, error)

	// DeleteParameter remove parameter with given ID
	DeleteParameter(ID string) error

	// UpdateParameter modify parameter with given ID and given new data
	UpdateParameter(param *Parameter) error

	// FetchParameterByID returns the parameter with given ID
	FetchParameterByID(ID string) (*Parameter, error)
}

Repository provides access to the parameter storage

Directories

Path Synopsis
storage

Jump to

Keyboard shortcuts

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