repository

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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