person

package
v0.0.0-...-d6dee32 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type InMemory

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

func NewInMemory

func NewInMemory(logger *zap.Logger) *InMemory

func (*InMemory) Get

func (pim *InMemory) Get() ([]model.Person, error)

func (*InMemory) GetByName

func (pim *InMemory) GetByName(name string) (model.Person, error)

func (*InMemory) Save

func (pim *InMemory) Save(p model.Person) error

type Person

type Person interface {
	Get() ([]model.Person, error)
	GetByName(string) (model.Person, error)
	Save(model.Person) error
}

Jump to

Keyboard shortcuts

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