repository

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHost

type GitHost struct {
	Id              int    `sql:"id,pk"`
	Name            string `sql:"name,notnull"`
	DisplayName     string `sql:"display_name,notnull"`
	Active          bool   `sql:"active,notnull"`
	WebhookUrl      string `sql:"webhook_url"`
	WebhookSecret   string `sql:"webhook_secret"`
	EventTypeHeader string `sql:"event_type_header"`
	SecretHeader    string `sql:"secret_header"`
	SecretValidator string `sql:"secret_validator"`
	sql.AuditLog
	// contains filtered or unexported fields
}

type GitHostRepository

type GitHostRepository interface {
	FindAll() ([]GitHost, error)
	FindOneById(Id int) (GitHost, error)
	FindOneByName(name string) (GitHost, error)
	Exists(name string) (bool, error)
	Save(gitHost *GitHost) error
}

type GitHostRepositoryImpl

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

func NewGitHostRepositoryImpl

func NewGitHostRepositoryImpl(dbConnection *pg.DB) *GitHostRepositoryImpl

func (GitHostRepositoryImpl) Exists

func (impl GitHostRepositoryImpl) Exists(name string) (bool, error)

func (GitHostRepositoryImpl) FindAll

func (impl GitHostRepositoryImpl) FindAll() ([]GitHost, error)

func (GitHostRepositoryImpl) FindOneById

func (impl GitHostRepositoryImpl) FindOneById(id int) (GitHost, error)

func (GitHostRepositoryImpl) FindOneByName

func (impl GitHostRepositoryImpl) FindOneByName(name string) (GitHost, error)

func (GitHostRepositoryImpl) Save

func (impl GitHostRepositoryImpl) Save(gitHost *GitHost) error

Jump to

Keyboard shortcuts

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