Documentation ¶
Index ¶
- type ExternalLink
- type ExternalLinkApiResponse
- type ExternalLinkClusterMapping
- type ExternalLinkClusterMappingRepository
- type ExternalLinkClusterMappingRepositoryImpl
- func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllActive() ([]ExternalLinkClusterMapping, error)
- func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllActiveByClusterId(clusterId int) ([]ExternalLinkClusterMapping, error)
- func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllActiveByExternalLinkId(linkId int) ([]*ExternalLinkClusterMapping, error)
- func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllByExternalLinkId(linkId int) ([]*ExternalLinkClusterMapping, error)
- func (impl ExternalLinkClusterMappingRepositoryImpl) Save(externalLinksClusters *ExternalLinkClusterMapping, tx *pg.Tx) error
- func (impl ExternalLinkClusterMappingRepositoryImpl) Update(link *ExternalLinkClusterMapping, tx *pg.Tx) error
- type ExternalLinkDto
- type ExternalLinkMonitoringTool
- type ExternalLinkMonitoringToolDto
- type ExternalLinkMonitoringToolRepository
- type ExternalLinkMonitoringToolRepositoryImpl
- type ExternalLinkRepository
- type ExternalLinkRepositoryImpl
- func (impl ExternalLinkRepositoryImpl) FindAllActive() ([]ExternalLink, error)
- func (impl ExternalLinkRepositoryImpl) FindAllFilterOutByIds(ids []int) ([]ExternalLink, error)
- func (impl ExternalLinkRepositoryImpl) FindOne(id int) (ExternalLink, error)
- func (repo ExternalLinkRepositoryImpl) GetConnection() *pg.DB
- func (impl ExternalLinkRepositoryImpl) Save(externalLinks *ExternalLink, tx *pg.Tx) error
- func (impl ExternalLinkRepositoryImpl) Update(link *ExternalLink, tx *pg.Tx) error
- type ExternalLinkService
- type ExternalLinkServiceImpl
- func (impl ExternalLinkServiceImpl) Create(requests []*ExternalLinkDto, userId int32) (*ExternalLinkApiResponse, error)
- func (impl ExternalLinkServiceImpl) DeleteLink(id int, userId int32) (*ExternalLinkApiResponse, error)
- func (impl ExternalLinkServiceImpl) FetchAllActiveLinks(clusterId int) ([]*ExternalLinkDto, error)
- func (impl ExternalLinkServiceImpl) GetAllActiveTools() ([]ExternalLinkMonitoringToolDto, error)
- func (impl ExternalLinkServiceImpl) Update(request *ExternalLinkDto) (*ExternalLinkApiResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalLink ¶
type ExternalLinkApiResponse ¶
type ExternalLinkApiResponse struct {
Success bool `json:"success"`
}
type ExternalLinkClusterMappingRepository ¶
type ExternalLinkClusterMappingRepository interface { Save(externalLinksClusters *ExternalLinkClusterMapping, tx *pg.Tx) error FindAllActiveByClusterId(clusterId int) ([]ExternalLinkClusterMapping, error) FindAllActive() ([]ExternalLinkClusterMapping, error) Update(link *ExternalLinkClusterMapping, tx *pg.Tx) error FindAllActiveByExternalLinkId(linkId int) ([]*ExternalLinkClusterMapping, error) FindAllByExternalLinkId(linkId int) ([]*ExternalLinkClusterMapping, error) }
type ExternalLinkClusterMappingRepositoryImpl ¶
type ExternalLinkClusterMappingRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewExternalLinkClusterMappingRepositoryImpl ¶
func NewExternalLinkClusterMappingRepositoryImpl(dbConnection *pg.DB) *ExternalLinkClusterMappingRepositoryImpl
func (ExternalLinkClusterMappingRepositoryImpl) FindAllActive ¶
func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllActive() ([]ExternalLinkClusterMapping, error)
func (ExternalLinkClusterMappingRepositoryImpl) FindAllActiveByClusterId ¶
func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllActiveByClusterId(clusterId int) ([]ExternalLinkClusterMapping, error)
func (ExternalLinkClusterMappingRepositoryImpl) FindAllActiveByExternalLinkId ¶
func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllActiveByExternalLinkId(linkId int) ([]*ExternalLinkClusterMapping, error)
func (ExternalLinkClusterMappingRepositoryImpl) FindAllByExternalLinkId ¶
func (impl ExternalLinkClusterMappingRepositoryImpl) FindAllByExternalLinkId(linkId int) ([]*ExternalLinkClusterMapping, error)
func (ExternalLinkClusterMappingRepositoryImpl) Save ¶
func (impl ExternalLinkClusterMappingRepositoryImpl) Save(externalLinksClusters *ExternalLinkClusterMapping, tx *pg.Tx) error
func (ExternalLinkClusterMappingRepositoryImpl) Update ¶
func (impl ExternalLinkClusterMappingRepositoryImpl) Update(link *ExternalLinkClusterMapping, tx *pg.Tx) error
type ExternalLinkDto ¶
type ExternalLinkMonitoringToolRepository ¶
type ExternalLinkMonitoringToolRepository interface {
FindAllActive() ([]ExternalLinkMonitoringTool, error)
}
type ExternalLinkMonitoringToolRepositoryImpl ¶
type ExternalLinkMonitoringToolRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewExternalLinkMonitoringToolRepositoryImpl ¶
func NewExternalLinkMonitoringToolRepositoryImpl(dbConnection *pg.DB) *ExternalLinkMonitoringToolRepositoryImpl
func (ExternalLinkMonitoringToolRepositoryImpl) FindAllActive ¶
func (impl ExternalLinkMonitoringToolRepositoryImpl) FindAllActive() ([]ExternalLinkMonitoringTool, error)
type ExternalLinkRepository ¶
type ExternalLinkRepository interface { Save(externalLinks *ExternalLink, tx *pg.Tx) error FindAllActive() ([]ExternalLink, error) FindOne(id int) (ExternalLink, error) Update(link *ExternalLink, tx *pg.Tx) error FindAllFilterOutByIds(ids []int) ([]ExternalLink, error) GetConnection() *pg.DB }
type ExternalLinkRepositoryImpl ¶
type ExternalLinkRepositoryImpl struct {
// contains filtered or unexported fields
}
func NewExternalLinkRepositoryImpl ¶
func NewExternalLinkRepositoryImpl(dbConnection *pg.DB) *ExternalLinkRepositoryImpl
func (ExternalLinkRepositoryImpl) FindAllActive ¶
func (impl ExternalLinkRepositoryImpl) FindAllActive() ([]ExternalLink, error)
func (ExternalLinkRepositoryImpl) FindAllFilterOutByIds ¶
func (impl ExternalLinkRepositoryImpl) FindAllFilterOutByIds(ids []int) ([]ExternalLink, error)
func (ExternalLinkRepositoryImpl) FindOne ¶
func (impl ExternalLinkRepositoryImpl) FindOne(id int) (ExternalLink, error)
func (ExternalLinkRepositoryImpl) GetConnection ¶
func (repo ExternalLinkRepositoryImpl) GetConnection() *pg.DB
func (ExternalLinkRepositoryImpl) Save ¶
func (impl ExternalLinkRepositoryImpl) Save(externalLinks *ExternalLink, tx *pg.Tx) error
func (ExternalLinkRepositoryImpl) Update ¶
func (impl ExternalLinkRepositoryImpl) Update(link *ExternalLink, tx *pg.Tx) error
type ExternalLinkService ¶
type ExternalLinkService interface { Create(requests []*ExternalLinkDto, userId int32) (*ExternalLinkApiResponse, error) GetAllActiveTools() ([]ExternalLinkMonitoringToolDto, error) FetchAllActiveLinks(clusterIds int) ([]*ExternalLinkDto, error) Update(request *ExternalLinkDto) (*ExternalLinkApiResponse, error) DeleteLink(id int, userId int32) (*ExternalLinkApiResponse, error) }
type ExternalLinkServiceImpl ¶
type ExternalLinkServiceImpl struct {
// contains filtered or unexported fields
}
func NewExternalLinkServiceImpl ¶
func NewExternalLinkServiceImpl(logger *zap.SugaredLogger, externalLinksToolsRepository ExternalLinkMonitoringToolRepository, externalLinksClustersRepository ExternalLinkClusterMappingRepository, externalLinksRepository ExternalLinkRepository) *ExternalLinkServiceImpl
func (ExternalLinkServiceImpl) Create ¶
func (impl ExternalLinkServiceImpl) Create(requests []*ExternalLinkDto, userId int32) (*ExternalLinkApiResponse, error)
func (ExternalLinkServiceImpl) DeleteLink ¶
func (impl ExternalLinkServiceImpl) DeleteLink(id int, userId int32) (*ExternalLinkApiResponse, error)
func (ExternalLinkServiceImpl) FetchAllActiveLinks ¶
func (impl ExternalLinkServiceImpl) FetchAllActiveLinks(clusterId int) ([]*ExternalLinkDto, error)
func (ExternalLinkServiceImpl) GetAllActiveTools ¶
func (impl ExternalLinkServiceImpl) GetAllActiveTools() ([]ExternalLinkMonitoringToolDto, error)
func (ExternalLinkServiceImpl) Update ¶
func (impl ExternalLinkServiceImpl) Update(request *ExternalLinkDto) (*ExternalLinkApiResponse, error)
Click to show internal directories.
Click to hide internal directories.