adrint

package
v0.0.0-...-9811130 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdrInt

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

AdrInt the internal address storage type

func NewAdrInt

func NewAdrInt() (*AdrInt, error)

NewAdrInt create a new instance of the internal address storage

func (*AdrInt) Addresses

func (a *AdrInt) Addresses() ([]pmodel.Address, error)

Addresses list all addresses

func (*AdrInt) Check

func (a *AdrInt) Check() (bool, error)

Check proceed a check and return state, true for healthy or false and an optional error, if the healthcheck fails

func (*AdrInt) CheckName

func (a *AdrInt) CheckName() string

CheckName should return the name of this healthcheck. The name should be unique.

func (*AdrInt) Create

func (a *AdrInt) Create(adr pmodel.Address) (string, error)

Create creates a new Address

func (*AdrInt) Delete

func (a *AdrInt) Delete(id string) error

Delete deletes the address with id

func (*AdrInt) Has

func (a *AdrInt) Has(id string) bool

Has checking if an adress is present

func (*AdrInt) Init

func (a *AdrInt) Init() error

Init this service

func (*AdrInt) Read

func (a *AdrInt) Read(id string) (*pmodel.Address, error)

Read getting the address with id

func (*AdrInt) Shutdown

func (a *AdrInt) Shutdown() error

Shutdown this service

func (*AdrInt) Update

func (a *AdrInt) Update(adr pmodel.Address) error

Update updates the address

Jump to

Keyboard shortcuts

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