list

package
v0.0.0-...-de70ca6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Logger() logging.Logger
	DataDSN() string
}

Config is the config for Lister

type Lister

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

Lister will attempt to load all people in the database. It can return an error caused by the data layer

func NewLister

func NewLister(cfg Config) *Lister

NewLister creates and initializes a Lister

func (*Lister) Do

func (l *Lister) Do() ([]*data.Person, error)

Exchange will load the people from the data layer

Jump to

Keyboard shortcuts

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