postgres

package
v0.0.0-...-cb2c959 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *sql.DB) photo.Service

New creates a new photo service.

Types

type Service

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

Service is used for getting information about a photo from a postgres database.

func (*Service) Create

func (s *Service) Create(team, url string) error

Create creates a photo URL for a team in the database.

func (*Service) Get

func (s *Service) Get(team string) (url string, err error)

Get gets the URL for a team photo from the database.

Jump to

Keyboard shortcuts

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