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.
Click to show internal directories.
Click to hide internal directories.