repositories

package
v0.0.0-...-8f0113c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConstraint = errors.New("something went wrong")
View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Config

type Config struct {
	Conn   string
	Secret []byte
}

type Repo

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

func New

func New(c Config) (*Repo, error)

func (*Repo) AddProject

func (r *Repo) AddProject(ctx context.Context, p *models.Project) error

func (*Repo) DeleteProject

func (r *Repo) DeleteProject(ctx context.Context, id string) error

func (*Repo) GetProject

func (r *Repo) GetProject(ctx context.Context, id string) (*models.Project, error)

func (*Repo) SuggestProjects

func (r *Repo) SuggestProjects(ctx context.Context, query string) ([]*models.Project, error)

Jump to

Keyboard shortcuts

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