people

package
v0.0.0-...-2d2e953 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 5 Imported by: 0

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,
	span opentracing.Span,
) (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