repo

package
v0.0.0-...-f31e6ca Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationRepo

type ApplicationRepo struct {
	Pool      *pgxpool.Conn
	CreatedAt time.Time
}

ApplicationRepo implements ApplicationRepo

func (ApplicationRepo) Create

func (store ApplicationRepo) Create(ctx context.Context, app *applications.AppWithoutContours) (err error)

Create application (add to database)

func (ApplicationRepo) Delete

func (store ApplicationRepo) Delete(ctx context.Context, appIn *applications.AppId) (err error)

Get application (from database)

func (ApplicationRepo) Get

Get application (from database)

func (ApplicationRepo) ListAdded

List applications (streaming from database)

func (ApplicationRepo) ListAvailable

func (store ApplicationRepo) ListAvailable(ctx context.Context, stream applications.Applications_ListServer, apps []string) error

List applications (streaming from database)

func (ApplicationRepo) Update

func (store ApplicationRepo) Update(ctx context.Context, app *applications.AppWithoutContours) (err error)

Update applications (database update)

Jump to

Keyboard shortcuts

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