repository

package
v0.0.0-...-0af54a0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName service.Name = "repository"

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

func ServiceProvider

func ServiceProvider(repository *Repository) service.Provider

Types

type Board

type Board struct {
	ID          BoardID      `json:"id"`
	Title       string       `json:"title"`
	Description string       `json:"description"`
	Lanes       []*BoardLane `json:"lanes"`
	Projects    []string     `json:"projects"`
}

type BoardID

type BoardID string

type BoardLane

type BoardLane struct {
	ID                     BoardLaneID `json:"id"`
	Title                  string      `json:"title"`
	IssueLabel             string      `json:"issueLabel"`
	CollectRemainingIssues bool        `json:"collectRemainingIssues"`
}

type BoardLaneID

type BoardLaneID string

type BoardRepository

type BoardRepository interface {
	List() ([]*Board, error)
	Get(BoardID) (*Board, error)
	Save(*Board) error
	Delete(BoardID) error
}

type Repository

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

func From

func From(container *service.Container) (*Repository, error)

From retrieves the repository service in the given container

func Must

func Must(container *service.Container) *Repository

Must retrieves the repository service in the given container or panic otherwise

func NewRepository

func NewRepository(boards BoardRepository) *Repository

func (*Repository) Boards

func (r *Repository) Boards() BoardRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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