repository

package
v0.0.0-...-f288741 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemRepository

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

func NewInMemRepository

func NewInMemRepository() *InMemRepository

func (*InMemRepository) Create

func (r *InMemRepository) Create(ctx context.Context, p *port.Port) error

func (*InMemRepository) FindByUnLoc

func (r *InMemRepository) FindByUnLoc(ctx context.Context, unloc string) (*port.Port, error)

func (*InMemRepository) Update

func (r *InMemRepository) Update(ctx context.Context, p *port.Port) error

type MySQLRepository

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

func NewMySQLRepository

func NewMySQLRepository(db *sql.DB) *MySQLRepository

func (*MySQLRepository) Create

func (r *MySQLRepository) Create(ctx context.Context, p *port.Port) error

func (*MySQLRepository) FindByUnLoc

func (r *MySQLRepository) FindByUnLoc(ctx context.Context, unloc string) (*port.Port, error)

func (*MySQLRepository) Update

func (r *MySQLRepository) Update(ctx context.Context, p *port.Port) error

Jump to

Keyboard shortcuts

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