storage

package
v0.0.0-...-5d37a61 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IssueStorage

type IssueStorage interface {
	Add(issue *desc.Issue) (int64, error)
	CreateSubtask(parentID int64, child *desc.Issue) (int64, error)
	AddComment(id int64, comment *comments.Comment) (int64, error)
	Get(filter *models.IssueFilter) ([]*desc.Issue, error)
	GetInfo(filter *models.IssueFilter) ([]*desc.IssueInfo, error)
	GetByID(id int64) (*desc.Issue, error)
	GetInfoByID(id int64) (*desc.IssueInfo, error)
	GetUserPayment() (map[string]float64, error)
	Update(id int64, issue *desc.Issue) (int64, error)
}

func NewIssueStorage

func NewIssueStorage(
	gw gateway.IssueGateway,
	projectGw projectGateway.ProjectGateway,
) IssueStorage

Jump to

Keyboard shortcuts

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