Help us shape the future of Go! Take the 2026 Go Developer Survey

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: 0

Documentation

Index

Constants

View Source
const UNASSIGNED_PROJECT = "unassigned"

Variables

This section is empty.

Functions

This section is empty.

Types

type Team

type Team struct {
	Id     int    `sql:"id,pk"`
	Name   string `sql:"name,notnull"`
	Active bool   `sql:"active,notnull"`
	sql.AuditLog
	// contains filtered or unexported fields
}

type TeamRepository

type TeamRepository interface {
	Save(team *Team) error
	FindAllActive() ([]Team, error)
	FindOne(id int) (Team, error)
	FindByTeamName(name string) (Team, error)
	Update(team *Team) error
	MarkTeamDeleted(team *Team, tx *pg.Tx) error
	GetConnection() *pg.DB
	FindByIds(ids []*int) ([]*Team, error)
	FindAllActiveTeamNames() ([]string, error)
	TeamRepositoryEnt
}

type TeamRepositoryEnt added in v1.8.0

type TeamRepositoryEnt interface {
}

type TeamRepositoryImpl

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

func NewTeamRepositoryImpl

func NewTeamRepositoryImpl(dbConnection *pg.DB) *TeamRepositoryImpl

func (TeamRepositoryImpl) FindAllActive

func (impl TeamRepositoryImpl) FindAllActive() ([]Team, error)

func (TeamRepositoryImpl) FindAllActiveTeamNames

func (impl TeamRepositoryImpl) FindAllActiveTeamNames() ([]string, error)

func (TeamRepositoryImpl) FindByIds

func (impl TeamRepositoryImpl) FindByIds(ids []*int) ([]*Team, error)

func (TeamRepositoryImpl) FindByTeamName

func (impl TeamRepositoryImpl) FindByTeamName(name string) (Team, error)

func (TeamRepositoryImpl) FindOne

func (impl TeamRepositoryImpl) FindOne(id int) (Team, error)

func (TeamRepositoryImpl) GetConnection

func (impl TeamRepositoryImpl) GetConnection() *pg.DB

func (TeamRepositoryImpl) MarkTeamDeleted

func (impl TeamRepositoryImpl) MarkTeamDeleted(team *Team, tx *pg.Tx) error

func (TeamRepositoryImpl) Save

func (impl TeamRepositoryImpl) Save(team *Team) error

func (TeamRepositoryImpl) Update

func (impl TeamRepositoryImpl) Update(team *Team) error

Jump to

Keyboard shortcuts

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