content

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Collections   core.CollectionStore
	Questions     core.QuestionStore
	Dashboards    core.DashboardStore
	Bookmarks     core.BookmarkStore
	Revisions     core.RevisionStore
	Alerts        core.AlertStore
	Notifications core.NotificationStore
	SearchStore   core.SearchStore
	Fields        core.FieldStore
	Models        core.ModelStore
	Metrics       core.MetricStore
	Segments      core.SegmentStore
	Glossary      core.GlossaryStore
}

func (Service) AddBookmark

func (s Service) AddBookmark(userID, targetType, targetID string) (core.Bookmark, error)

func (Service) ArchiveDashboard

func (s Service) ArchiveDashboard(id string) error

func (Service) ArchiveQuestion

func (s Service) ArchiveQuestion(id string) error

func (Service) CreateAlert

func (s Service) CreateAlert(a core.Alert, userID string) (core.Alert, error)

func (Service) CreateCollection

func (s Service) CreateCollection(name, parentID, ownerID, ownerGroupID string) (core.Collection, error)

func (Service) CreateDashboard

func (s Service) CreateDashboard(d core.Dashboard, userID string) (core.Dashboard, error)

func (Service) CreateGlossary

func (s Service) CreateGlossary(term core.GlossaryTerm) (core.GlossaryTerm, error)

func (Service) CreateMetric

func (s Service) CreateMetric(m core.Metric) (core.Metric, error)

func (Service) CreateModel

func (s Service) CreateModel(m core.Model, userID string) (core.Model, error)

func (Service) CreateQuestion

func (s Service) CreateQuestion(q core.Question, userID string) (core.Question, error)

func (Service) CreateSegment

func (s Service) CreateSegment(seg core.Segment) (core.Segment, error)

func (Service) DeleteAlert

func (s Service) DeleteAlert(id string) error

func (Service) DeleteBookmark

func (s Service) DeleteBookmark(id, userID string) error

func (Service) DeleteCollection

func (s Service) DeleteCollection(id string) error
func (s Service) DisableDashboardPublicLink(id, userID string) (core.Dashboard, error)

func (Service) DuplicateDashboard

func (s Service) DuplicateDashboard(id, userID string) (core.Dashboard, error)
func (s Service) EnableDashboardPublicLink(id, userID string) (core.Dashboard, error)

func (Service) EnsurePersonalCollection

func (s Service) EnsurePersonalCollection(user core.User) (core.Collection, error)

func (Service) GetAlert

func (s Service) GetAlert(id string) (core.Alert, error)

func (Service) GetDashboard

func (s Service) GetDashboard(id string) (core.Dashboard, error)

func (Service) GetDashboardByPublicUUID

func (s Service) GetDashboardByPublicUUID(uuid string) (core.Dashboard, error)

func (Service) GetModel

func (s Service) GetModel(id string) (core.Model, error)

func (Service) GetQuestion

func (s Service) GetQuestion(id string) (core.Question, error)

func (Service) ImplicitJoin

func (s Service) ImplicitJoin(databaseID, schema, table, targetTable string) (ok bool, join any)

func (Service) ListAlerts

func (s Service) ListAlerts() ([]core.Alert, error)

func (Service) ListBookmarks

func (s Service) ListBookmarks(userID string) ([]core.Bookmark, error)

func (Service) ListCollections

func (s Service) ListCollections() ([]core.Collection, error)

func (Service) ListDashboards

func (s Service) ListDashboards() ([]core.Dashboard, error)

func (Service) ListFields

func (s Service) ListFields(databaseID, schema, table string) ([]core.FieldMeta, error)

func (Service) ListGlossary

func (s Service) ListGlossary() ([]core.GlossaryTerm, error)

func (Service) ListMetrics

func (s Service) ListMetrics() ([]core.Metric, error)

func (Service) ListModels

func (s Service) ListModels() ([]core.Model, error)

func (Service) ListNotifications

func (s Service) ListNotifications(userID string) ([]core.Notification, error)

func (Service) ListQuestions

func (s Service) ListQuestions() ([]core.Question, error)

func (Service) ListRevisions

func (s Service) ListRevisions(targetType, targetID string) ([]core.Revision, error)

func (Service) ListSegments

func (s Service) ListSegments() ([]core.Segment, error)

func (Service) PublishDashboard

func (s Service) PublishDashboard(id, userID string, update core.DashboardPublicLinkUpdate) (core.Dashboard, error)

func (Service) RecordNotification

func (s Service) RecordNotification(n core.Notification) error

func (Service) Restore

func (s Service) Restore(targetType, id string) error

func (Service) RestoreDashboard

func (s Service) RestoreDashboard(id string) error

func (Service) RestoreQuestion

func (s Service) RestoreQuestion(id string) error

func (Service) SaveField

func (s Service) SaveField(field core.FieldMeta) (core.FieldMeta, error)

func (Service) Search

func (s Service) Search(query string) ([]core.SearchHit, error)

func (Service) SetDashboardEmbedding

func (s Service) SetDashboardEmbedding(id string, enabled bool, userID string) (core.Dashboard, error)

func (Service) Trash

func (s Service) Trash() ([]core.TrashItem, error)

func (Service) UpdateCollection

func (s Service) UpdateCollection(id, name, parentID string) (core.Collection, error)

func (Service) UpdateDashboard

func (s Service) UpdateDashboard(d core.Dashboard, userID string) (core.Dashboard, error)
func (s Service) UpdateDashboardPublicLink(id, userID string, update core.DashboardPublicLinkUpdate) (core.Dashboard, error)

func (Service) UpdateQuestion

func (s Service) UpdateQuestion(patch core.Question) (core.Question, error)

Jump to

Keyboard shortcuts

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