store

package
v0.0.0-...-e510c16 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migration

func Migration(db *sql.DB, sourceUrl string) (*migrate.Migrate, error)

func Postgres

func Postgres(dataSource string) (*sql.DB, error)

Types

type PostgresStore

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

func New

func New(db *sql.DB) *PostgresStore

func (*PostgresStore) Delete

func (s *PostgresStore) Delete(ctx context.Context, event eventflow.Event) (err error)

func (*PostgresStore) Save

func (s *PostgresStore) Save(ctx context.Context, event eventflow.Event) (err error)

func (*PostgresStore) Update

func (s *PostgresStore) Update(ctx context.Context, event eventflow.Event) (err error)

Jump to

Keyboard shortcuts

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