adrsvc

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

View Source
var (
	ErrNotFound = errors.New("not found")
)

Error definitions

Functions

This section is empty.

Types

type AddressStorage

type AddressStorage interface {
	interfaces.Service
	health.Check
	Addresses() ([]pmodel.Address, error)
	Has(id string) bool
	Read(id string) (*pmodel.Address, error)
	Create(adr pmodel.Address) (string, error)
	Update(adr pmodel.Address) error
	Delete(id string) error
}

AddressStorage this is the interface every storage provider should implement

type Config

type Config struct {
	Type       string         `yaml:"type"`
	Connection map[string]any `yaml:"connection"`
}

Config general config for the storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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