memory

package
v0.0.0-...-eef0f43 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CustomerRepository

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

func NewCustomerRepository

func NewCustomerRepository(log *log.Logger) *CustomerRepository

func (*CustomerRepository) CreateCustomer

func (repo *CustomerRepository) CreateCustomer(
	ctx context.Context,
	customer *model.Customer,
) (*model.Customer, error)

func (*CustomerRepository) GetCustomer

func (repo *CustomerRepository) GetCustomer(ctx context.Context, id int) (*model.Customer, error)

Jump to

Keyboard shortcuts

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