milestone

package
v0.0.0-...-974506c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

Datastore implements the Repository interface

func NewDatastore

func NewDatastore(db *sql.DB) *Datastore

NewDatastore constructs a new Repository

func (*Datastore) Create

func (ds *Datastore) Create(usr *user.User, mil *Milestone) error

Create creates a new milestone

func (*Datastore) Show

func (ds *Datastore) Show(mil *Milestone) error

Show a milestone

type Milestone

type Milestone struct {
	ID          int    `jsonapi:"primary,milestones"`
	Name        string `jsonapi:"attr,name"`
	Description string `jsonapi:"attr,description"`
	ProjectID   int    `jsonapi:"attr,project_id"`
	OpenItems   pq.Int64Array
}

Milestone represents a milestone

type Repository

type Repository interface {
	Create(usr *user.User, mil *Milestone) error
	Show(mil *Milestone) error
}

Repository to manage labels

Jump to

Keyboard shortcuts

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