daotest

package
v0.0.0-...-53bcd79 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Generated by protoc-ddl. protoc-gen-dao-mock: v0.1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermitPullRequest

type PermitPullRequest struct {
	*mock.Mock
}

func NewPermitPullRequest

func NewPermitPullRequest() *PermitPullRequest

func (*PermitPullRequest) Create

func (*PermitPullRequest) Delete

func (d *PermitPullRequest) Delete(ctx context.Context, id int32, opt ...dao.ExecOption) error

func (*PermitPullRequest) ListByRepositoryAndNumber

func (d *PermitPullRequest) ListByRepositoryAndNumber(ctx context.Context, repository string, number int32, opt ...dao.ListOption) ([]*database.PermitPullRequest, error)

func (*PermitPullRequest) RegisterListByRepositoryAndNumber

func (d *PermitPullRequest) RegisterListByRepositoryAndNumber(repository string, number int32, value []*database.PermitPullRequest, err error)

func (*PermitPullRequest) RegisterSelect

func (d *PermitPullRequest) RegisterSelect(id int32, value *database.PermitPullRequest)

func (*PermitPullRequest) RegisterSelectMulti

func (d *PermitPullRequest) RegisterSelectMulti(id []int32, value []*database.PermitPullRequest)

func (*PermitPullRequest) Select

func (*PermitPullRequest) SelectMulti

func (d *PermitPullRequest) SelectMulti(ctx context.Context, id ...int32) ([]*database.PermitPullRequest, error)

func (*PermitPullRequest) Tx

func (d *PermitPullRequest) Tx(ctx context.Context, fn func(tx *sql.Tx) error) error

func (*PermitPullRequest) Update

func (d *PermitPullRequest) Update(ctx context.Context, permitPullRequest *database.PermitPullRequest, opt ...dao.ExecOption) error

type SourceRepository

type SourceRepository struct {
	*mock.Mock
}

func NewSourceRepository

func NewSourceRepository() *SourceRepository

func (*SourceRepository) Create

func (d *SourceRepository) Create(ctx context.Context, sourceRepository *database.SourceRepository, opt ...dao.ExecOption) (*database.SourceRepository, error)

func (*SourceRepository) Delete

func (d *SourceRepository) Delete(ctx context.Context, id int32, opt ...dao.ExecOption) error

func (*SourceRepository) ListAll

func (*SourceRepository) ListByUrl

func (d *SourceRepository) ListByUrl(ctx context.Context, url string, opt ...dao.ListOption) ([]*database.SourceRepository, error)

func (*SourceRepository) RegisterListAll

func (d *SourceRepository) RegisterListAll(value []*database.SourceRepository, err error)

func (*SourceRepository) RegisterListByUrl

func (d *SourceRepository) RegisterListByUrl(url string, value []*database.SourceRepository, err error)

func (*SourceRepository) RegisterSelect

func (d *SourceRepository) RegisterSelect(id int32, value *database.SourceRepository)

func (*SourceRepository) RegisterSelectMulti

func (d *SourceRepository) RegisterSelectMulti(id []int32, value []*database.SourceRepository)

func (*SourceRepository) Select

func (*SourceRepository) SelectMulti

func (d *SourceRepository) SelectMulti(ctx context.Context, id ...int32) ([]*database.SourceRepository, error)

func (*SourceRepository) Tx

func (d *SourceRepository) Tx(ctx context.Context, fn func(tx *sql.Tx) error) error

func (*SourceRepository) Update

func (d *SourceRepository) Update(ctx context.Context, sourceRepository *database.SourceRepository, opt ...dao.ExecOption) error

type Task

type Task struct {
	*mock.Mock
}

func NewTask

func NewTask() *Task

func (*Task) Create

func (d *Task) Create(ctx context.Context, task *database.Task, opt ...dao.ExecOption) (*database.Task, error)

func (*Task) Delete

func (d *Task) Delete(ctx context.Context, id int32, opt ...dao.ExecOption) error

func (*Task) ListAll

func (d *Task) ListAll(ctx context.Context, opt ...dao.ListOption) ([]*database.Task, error)

func (*Task) ListByRepositoryId

func (d *Task) ListByRepositoryId(ctx context.Context, repositoryId int32, opt ...dao.ListOption) ([]*database.Task, error)

func (*Task) ListByRevision

func (d *Task) ListByRevision(ctx context.Context, repositoryId int32, revision string, opt ...dao.ListOption) ([]*database.Task, error)

func (*Task) ListPending

func (d *Task) ListPending(ctx context.Context, opt ...dao.ListOption) ([]*database.Task, error)

func (*Task) ListUniqJobName

func (d *Task) ListUniqJobName(ctx context.Context, repositoryId int32, opt ...dao.ListOption) ([]*database.Task, error)

func (*Task) RegisterListAll

func (d *Task) RegisterListAll(value []*database.Task, err error)

func (*Task) RegisterListByRepositoryId

func (d *Task) RegisterListByRepositoryId(repositoryId int32, value []*database.Task, err error)

func (*Task) RegisterListByRevision

func (d *Task) RegisterListByRevision(repositoryId int32, revision string, value []*database.Task, err error)

func (*Task) RegisterListPending

func (d *Task) RegisterListPending(value []*database.Task, err error)

func (*Task) RegisterListUniqJobName

func (d *Task) RegisterListUniqJobName(repositoryId int32, value []*database.Task, err error)

func (*Task) RegisterSelect

func (d *Task) RegisterSelect(id int32, value *database.Task)

func (*Task) RegisterSelectMulti

func (d *Task) RegisterSelectMulti(id []int32, value []*database.Task)

func (*Task) Select

func (d *Task) Select(ctx context.Context, id int32) (*database.Task, error)

func (*Task) SelectMulti

func (d *Task) SelectMulti(ctx context.Context, id ...int32) ([]*database.Task, error)

func (*Task) Tx

func (d *Task) Tx(ctx context.Context, fn func(tx *sql.Tx) error) error

func (*Task) Update

func (d *Task) Update(ctx context.Context, task *database.Task, opt ...dao.ExecOption) error

type TestReport

type TestReport struct {
	*mock.Mock
}

func NewTestReport

func NewTestReport() *TestReport

func (*TestReport) Create

func (d *TestReport) Create(ctx context.Context, testReport *database.TestReport, opt ...dao.ExecOption) (*database.TestReport, error)

func (*TestReport) Delete

func (d *TestReport) Delete(ctx context.Context, id int32, opt ...dao.ExecOption) error

func (*TestReport) ListByTaskId

func (d *TestReport) ListByTaskId(ctx context.Context, taskId int32, opt ...dao.ListOption) ([]*database.TestReport, error)

func (*TestReport) RegisterListByTaskId

func (d *TestReport) RegisterListByTaskId(taskId int32, value []*database.TestReport, err error)

func (*TestReport) RegisterSelect

func (d *TestReport) RegisterSelect(id int32, value *database.TestReport)

func (*TestReport) RegisterSelectMulti

func (d *TestReport) RegisterSelectMulti(id []int32, value []*database.TestReport)

func (*TestReport) Select

func (d *TestReport) Select(ctx context.Context, id int32) (*database.TestReport, error)

func (*TestReport) SelectMulti

func (d *TestReport) SelectMulti(ctx context.Context, id ...int32) ([]*database.TestReport, error)

func (*TestReport) Tx

func (d *TestReport) Tx(ctx context.Context, fn func(tx *sql.Tx) error) error

func (*TestReport) Update

func (d *TestReport) Update(ctx context.Context, testReport *database.TestReport, opt ...dao.ExecOption) error

type TrustedUser

type TrustedUser struct {
	*mock.Mock
}

func NewTrustedUser

func NewTrustedUser() *TrustedUser

func (*TrustedUser) Create

func (d *TrustedUser) Create(ctx context.Context, trustedUser *database.TrustedUser, opt ...dao.ExecOption) (*database.TrustedUser, error)

func (*TrustedUser) Delete

func (d *TrustedUser) Delete(ctx context.Context, id int32, opt ...dao.ExecOption) error

func (*TrustedUser) ListAll

func (d *TrustedUser) ListAll(ctx context.Context, opt ...dao.ListOption) ([]*database.TrustedUser, error)

func (*TrustedUser) ListByGithubId

func (d *TrustedUser) ListByGithubId(ctx context.Context, githubId int64, opt ...dao.ListOption) ([]*database.TrustedUser, error)

func (*TrustedUser) RegisterListAll

func (d *TrustedUser) RegisterListAll(value []*database.TrustedUser, err error)

func (*TrustedUser) RegisterListByGithubId

func (d *TrustedUser) RegisterListByGithubId(githubId int64, value []*database.TrustedUser, err error)

func (*TrustedUser) RegisterSelect

func (d *TrustedUser) RegisterSelect(id int32, value *database.TrustedUser)

func (*TrustedUser) RegisterSelectMulti

func (d *TrustedUser) RegisterSelectMulti(id []int32, value []*database.TrustedUser)

func (*TrustedUser) Select

func (d *TrustedUser) Select(ctx context.Context, id int32) (*database.TrustedUser, error)

func (*TrustedUser) SelectMulti

func (d *TrustedUser) SelectMulti(ctx context.Context, id ...int32) ([]*database.TrustedUser, error)

func (*TrustedUser) Tx

func (d *TrustedUser) Tx(ctx context.Context, fn func(tx *sql.Tx) error) error

func (*TrustedUser) Update

func (d *TrustedUser) Update(ctx context.Context, trustedUser *database.TrustedUser, opt ...dao.ExecOption) error

Jump to

Keyboard shortcuts

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