store

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store describes a datastore object

func (*Store) GetCustomerEmail

func (st *Store) GetCustomerEmail(ctx context.Context, id int) (string, error)

GetCustomerEmail returns a customer email from the datastore given a customer identifier

func (*Store) SetConn

func (st *Store) SetConn(conn *sql.DB) *Store

SetConn attaches the MySQL connection to the store

Jump to

Keyboard shortcuts

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