repo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const JIRA_DATE_FORMAT = "2006-01-02T15:04:05.000-0700"

TODO

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryIssuesResult

type QueryIssuesResult struct {
	Result []*model.Issue `json:"result"`
}

type QuerySyncSettingsResult

type QuerySyncSettingsResult struct {
	Result []*model.SyncSetting `json:"result"`
}

type Repo

type Repo interface {
	CreateIssue(_id string, model *model.Issue) (*model.Issue, error)
	ReadIssue(_id string) (*model.Issue, error)
	UpdateIssue(_id string, _rev string, model *model.Issue) (*model.Issue, error)
	DeleteIssue(_id string, _rev string) (*model.Issue, error)
	QueryIssues(query map[string]string) (*QueryIssuesResult, error)
	QueryAllIssues() (*QueryIssuesResult, error)

	CreateSyncSetting(_id string, model *model.SyncSetting) (*model.SyncSetting, error)
	ReadSyncSetting(_id string) (*model.SyncSetting, error)
	UpdateSyncSetting(_id string, _rev string, model *model.SyncSetting) (*model.SyncSetting, error)
	DeleteSyncSetting(_id string, _rev string) (*model.SyncSetting, error)
	QuerySyncSettings(query map[string]string) (*QuerySyncSettingsResult, error)
	QueryAllSyncSettings() (*QuerySyncSettingsResult, error)
	FindByName(name string) (*model.SyncSetting, error)
}

func InitSQLite

func InitSQLite(dataDir string) Repo

type RepoSQLiteImpl

type RepoSQLiteImpl struct {
	Conn *sql.DB `inject:""`
}

func (*RepoSQLiteImpl) CreateIssue

func (this *RepoSQLiteImpl) CreateIssue(_id string, model *model.Issue) (*model.Issue, error)

func (*RepoSQLiteImpl) CreateSyncSetting

func (this *RepoSQLiteImpl) CreateSyncSetting(_id string, model *model.SyncSetting) (*model.SyncSetting, error)

func (*RepoSQLiteImpl) DeleteIssue

func (this *RepoSQLiteImpl) DeleteIssue(_id string, _rev string) (*model.Issue, error)

func (*RepoSQLiteImpl) DeleteSyncSetting

func (this *RepoSQLiteImpl) DeleteSyncSetting(_id string, _rev string) (*model.SyncSetting, error)

func (*RepoSQLiteImpl) FindByName

func (this *RepoSQLiteImpl) FindByName(name string) (*model.SyncSetting, error)

func (*RepoSQLiteImpl) QueryAllIssues

func (this *RepoSQLiteImpl) QueryAllIssues() (*QueryIssuesResult, error)

func (*RepoSQLiteImpl) QueryAllSyncSettings

func (this *RepoSQLiteImpl) QueryAllSyncSettings() (*QuerySyncSettingsResult, error)

func (*RepoSQLiteImpl) QueryIssues

func (this *RepoSQLiteImpl) QueryIssues(query map[string]string) (*QueryIssuesResult, error)

func (*RepoSQLiteImpl) QuerySyncSettings

func (this *RepoSQLiteImpl) QuerySyncSettings(query map[string]string) (*QuerySyncSettingsResult, error)

func (*RepoSQLiteImpl) ReadIssue

func (this *RepoSQLiteImpl) ReadIssue(_id string) (*model.Issue, error)

func (*RepoSQLiteImpl) ReadSyncSetting

func (this *RepoSQLiteImpl) ReadSyncSetting(_id string) (*model.SyncSetting, error)

func (*RepoSQLiteImpl) UpdateIssue

func (this *RepoSQLiteImpl) UpdateIssue(_id string, _rev string, model *model.Issue) (*model.Issue, error)

func (*RepoSQLiteImpl) UpdateSyncSetting

func (this *RepoSQLiteImpl) UpdateSyncSetting(_id string, _rev string, model *model.SyncSetting) (*model.SyncSetting, error)

Jump to

Keyboard shortcuts

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