people

package
v0.0.0-...-19bc9e3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

Repository retrieves information about people.

func NewRepository

func NewRepository() *Repository

NewRepository creates a new Repository backed by MySQL database.

func (*Repository) Close

func (r *Repository) Close()

Close calls close on the underlying db connection.

func (*Repository) GetPerson

func (r *Repository) GetPerson(name string) (model.Person, error)

GetPerson tries to find the person in the database by name. If not found, it still returns a Person object with only name field populated.

Jump to

Keyboard shortcuts

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