db

package
v0.0.0-...-2847b59 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueRepository

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

ProjectRepository concrete implementation of sql db

func NewIssueRepository

func NewIssueRepository() *IssueRepository

func (*IssueRepository) All

func (r *IssueRepository) All() ([]*domain.Issue, error)

func (*IssueRepository) Create

func (r *IssueRepository) Create(u *domain.Issue) error

func (*IssueRepository) Delete

func (r *IssueRepository) Delete(id int64) error

func (*IssueRepository) GetById

func (r *IssueRepository) GetById(id int64) (*domain.Issue, error)

func (*IssueRepository) Init

func (r *IssueRepository) Init(schema string) error

type ProjectRepository

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

ProjectRepository concrete implementation of sql db

func NewProjectRepository

func NewProjectRepository() *ProjectRepository

func (*ProjectRepository) All

func (r *ProjectRepository) All() ([]*domain.Project, error)

func (*ProjectRepository) Create

func (r *ProjectRepository) Create(p *domain.Project) error

func (*ProjectRepository) Delete

func (r *ProjectRepository) Delete(id int64) error

func (*ProjectRepository) GetById

func (r *ProjectRepository) GetById(id int64) (*domain.Project, error)

func (*ProjectRepository) Init

func (r *ProjectRepository) Init(schema string) error

type UserRepository

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

UserRepository concrete implementation of in-memory db

func NewUserRepository

func NewUserRepository() *UserRepository

func (*UserRepository) All

func (r *UserRepository) All() ([]*domain.User, error)

func (*UserRepository) Create

func (r *UserRepository) Create(u *domain.User) error

func (*UserRepository) Delete

func (r *UserRepository) Delete(id int64) error

func (*UserRepository) GetById

func (r *UserRepository) GetById(id int64) (*domain.User, error)

func (*UserRepository) Init

func (r *UserRepository) Init(schema string) error

Jump to

Keyboard shortcuts

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