dbrange

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverForRange

type ResolverForRange struct {
	DB *gorm.DB
}

ResolverForRange resolves range specific things.

func (*ResolverForRange) AddDashboardRange

func (r *ResolverForRange) AddDashboardRange(ctx context.Context, dashboardID int, rangeArg gqlmodel.InputNamedDateRange) (*gqlmodel.NamedDateRange, error)

AddDashboardRange adds a dashboard range.

func (*ResolverForRange) RemoveDashboardRange

func (r *ResolverForRange) RemoveDashboardRange(ctx context.Context, rangeID int) (*gqlmodel.NamedDateRange, error)

RemoveDashboardRange removes a dashboard range.

func (*ResolverForRange) UpdateDashboardRange

func (r *ResolverForRange) UpdateDashboardRange(ctx context.Context, rangeID int, rangeArg gqlmodel.InputNamedDateRange) (*gqlmodel.NamedDateRange, error)

UpdateDashboardRange updates a dashboard range.

Jump to

Keyboard shortcuts

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