repository

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGRepository added in v1.1.0

type PGRepository struct {
	*pg.DB
}

func NewPgRepository added in v1.1.0

func NewPgRepository(db *pg.DB) (*PGRepository, error)

func (*PGRepository) Delete added in v1.1.0

func (repo *PGRepository) Delete(ctx context.Context, f *model.ServerFilter) ([]*model.Server, error)

func (*PGRepository) Fetch added in v1.1.0

func (repo *PGRepository) Fetch(ctx context.Context, f *model.ServerFilter) ([]*model.Server, int, error)

func (*PGRepository) Store added in v1.1.0

func (repo *PGRepository) Store(ctx context.Context, server *model.Server) error

func (*PGRepository) Update added in v1.1.0

func (repo *PGRepository) Update(ctx context.Context, server *model.Server) error

Jump to

Keyboard shortcuts

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