dashboard

package
v1.21.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardRepo

type DashboardRepo struct {
	DashboardMember *dashmember.DashboardMemberRepo
	DashboardKey    *dashkey.DashboardKeyRepo
	// contains filtered or unexported fields
}

func NewDashboardRepo

func NewDashboardRepo(
	dashboardMemberRepo *dashmember.DashboardMemberRepo,
	dashboardKeyRepo *dashkey.DashboardKeyRepo,
) *DashboardRepo

func (*DashboardRepo) Create

func (repo *DashboardRepo) Create(dash *types.Dashboard) error

func (*DashboardRepo) GetAll

func (repo *DashboardRepo) GetAll() (types.Dashboards, error)

func (*DashboardRepo) GetById

func (repo *DashboardRepo) GetById(id int) (*types.Dashboard, error)

func (*DashboardRepo) GetByIds

func (repo *DashboardRepo) GetByIds(ids []int) (types.Dashboards, error)

func (*DashboardRepo) GetByOwnerId

func (repo *DashboardRepo) GetByOwnerId(id int) (types.Dashboards, error)

func (*DashboardRepo) GetShared

func (repo *DashboardRepo) GetShared(userId int, role int) (types.Dashboards, error)

func (*DashboardRepo) GetSystemIds

func (repo *DashboardRepo) GetSystemIds(role int) []int

func (*DashboardRepo) Remove

func (repo *DashboardRepo) Remove(id int) error

func (*DashboardRepo) Update

func (repo *DashboardRepo) Update(dash *types.Dashboard) error

Jump to

Keyboard shortcuts

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