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) event.Service

New creates a new event service.

Types

type Service

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

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

func (*Service) Get

func (s *Service) Get(key string, ms match.Service) (e event.Event, err error)

Get gets a full event from the postgres database.

func (*Service) GetBasicEvents

func (s *Service) GetBasicEvents() ([]event.BasicEvent, error)

GetBasicEvents returns basic event information fetched from the postgres database.

func (*Service) MassUpsert

func (s *Service) MassUpsert(bEvents []event.BasicEvent) 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