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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New creates a new match service.

Types

type Service

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

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

func (*Service) Get

func (s *Service) Get(eventKey, matchKey string, as alliance.Service) (m match.Match, err error)

Get gets a full match from the postgres database.

func (*Service) GetBasicMatches

func (s *Service) GetBasicMatches(eventKey string) ([]match.BasicMatch, error)

GetBasicMatches fetches basic information about a match from the postgres database.

func (*Service) MassUpsert

func (s *Service) MassUpsert(matches []match.Match, as alliance.Service) error

MassUpsert upserts multiple events in the postgres database.

Jump to

Keyboard shortcuts

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