mngt

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	ID      string `json:"id,omitempty"`
	PathUrl string `json:"path_url,omitempty"`
	Status  string `json:"status,omitempty"`
}

func NewEnpoint

func NewEnpoint(pathUrl, status string) Endpoint

func (*Endpoint) FromMapToJSON

func (ed *Endpoint) FromMapToJSON(data map[string]interface{})

func (*Endpoint) ToMAP

func (ed *Endpoint) ToMAP() (toHashMap map[string]interface{}, err error)

type IEndpoint

type IEndpoint interface {
	ListEndpoints() ([]Endpoint, error)
	RegisterEndpoint(Endpoint) error
	UpdateEndpoint(Endpoint) error
}

type MngtRepositoryStorage

type MngtRepositoryStorage struct {
	// contains filtered or unexported fields
}

func NewMngtRepositoryStorage

func NewMngtRepositoryStorage(clients ...interface{}) MngtRepositoryStorage

func (MngtRepositoryStorage) ListEndpoints

func (r MngtRepositoryStorage) ListEndpoints() ([]Endpoint, error)

func (MngtRepositoryStorage) RegisterEndpoint

func (r MngtRepositoryStorage) RegisterEndpoint(endpoint Endpoint) error

func (MngtRepositoryStorage) UpdateEndpoint

func (r MngtRepositoryStorage) UpdateEndpoint(endpoint Endpoint) error

Jump to

Keyboard shortcuts

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