team

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 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 Team

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

type TeamRbacObjects

type TeamRbacObjects struct {
	AppName  string `json:"appName"`
	TeamName string `json:"teamName"`
	AppId    int    `json:"appId"`
}

type TeamRepository

type TeamRepository interface {
	Save(team *Team) error
	FindAll() ([]Team, error)
	FindOne(id int) (Team, error)
	FindByTeamName(name string) (Team, error)
	Update(team *Team) error

	FindTeamByAppId(appId int) (*Team, error)
	FindTeamByAppName(appName string) (*Team, error)
	FindTeamByAppNameV2() ([]*TeamRbacObjects, error)
	FindByIds(ids []*int) ([]*Team, error)
}

type TeamRepositoryImpl

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

func NewTeamRepositoryImpl

func NewTeamRepositoryImpl(dbConnection *pg.DB) *TeamRepositoryImpl

func (TeamRepositoryImpl) FindAll

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

func (TeamRepositoryImpl) FindByIds

func (repo 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) FindTeamByAppId

func (repo TeamRepositoryImpl) FindTeamByAppId(appId int) (*Team, error)

func (TeamRepositoryImpl) FindTeamByAppName

func (repo TeamRepositoryImpl) FindTeamByAppName(appName string) (*Team, error)

func (TeamRepositoryImpl) FindTeamByAppNameV2

func (repo TeamRepositoryImpl) FindTeamByAppNameV2() ([]*TeamRbacObjects, 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