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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContourRepo

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

ContourRepo implements ContoueRepo

func (ContourRepo) AddServices

func (store ContourRepo) AddServices(ctx context.Context, contour *contours.RepeatedServiceWithId) (err error)

func (ContourRepo) Create

Create a contour (add to db)

func (ContourRepo) Delete

func (store ContourRepo) Delete(ctx context.Context, contour *contours.ContourIdAndName) (err error)

Delete a contour

func (ContourRepo) Get

func (store ContourRepo) Get(ctx context.Context, contourIn *contours.ContourId) (*contours.ContourInfo, error)

Get a contour (from db)

func (ContourRepo) GetAppIDByContourID

func (store ContourRepo) GetAppIDByContourID(ctx context.Context, contourID string) (string, error)

func (ContourRepo) List

func (ContourRepo) RemoveService

func (store ContourRepo) RemoveService(ctx context.Context, in *contours.ServiceIdAndContourId) error

func (ContourRepo) Update

Jump to

Keyboard shortcuts

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