Documentation
¶
Index ¶
- type Service
- func (s Service) AddBookmark(userID, targetType, targetID string) (core.Bookmark, error)
- func (s Service) ArchiveDashboard(id string) error
- func (s Service) ArchiveQuestion(id string) error
- func (s Service) CreateAlert(a core.Alert, userID string) (core.Alert, error)
- func (s Service) CreateCollection(name, parentID, ownerID, ownerGroupID string) (core.Collection, error)
- func (s Service) CreateDashboard(d core.Dashboard, userID string) (core.Dashboard, error)
- func (s Service) CreateGlossary(term core.GlossaryTerm) (core.GlossaryTerm, error)
- func (s Service) CreateMetric(m core.Metric) (core.Metric, error)
- func (s Service) CreateModel(m core.Model, userID string) (core.Model, error)
- func (s Service) CreateQuestion(q core.Question, userID string) (core.Question, error)
- func (s Service) CreateSegment(seg core.Segment) (core.Segment, error)
- func (s Service) DeleteAlert(id string) error
- func (s Service) DeleteBookmark(id, userID string) error
- func (s Service) DeleteCollection(id string) error
- func (s Service) DisableDashboardPublicLink(id, userID string) (core.Dashboard, error)
- func (s Service) DuplicateDashboard(id, userID string) (core.Dashboard, error)
- func (s Service) EnableDashboardPublicLink(id, userID string) (core.Dashboard, error)
- func (s Service) EnsurePersonalCollection(user core.User) (core.Collection, error)
- func (s Service) GetAlert(id string) (core.Alert, error)
- func (s Service) GetDashboard(id string) (core.Dashboard, error)
- func (s Service) GetDashboardByPublicUUID(uuid string) (core.Dashboard, error)
- func (s Service) GetModel(id string) (core.Model, error)
- func (s Service) GetQuestion(id string) (core.Question, error)
- func (s Service) ImplicitJoin(databaseID, schema, table, targetTable string) (ok bool, join any)
- func (s Service) ListAlerts() ([]core.Alert, error)
- func (s Service) ListBookmarks(userID string) ([]core.Bookmark, error)
- func (s Service) ListCollections() ([]core.Collection, error)
- func (s Service) ListDashboards() ([]core.Dashboard, error)
- func (s Service) ListFields(databaseID, schema, table string) ([]core.FieldMeta, error)
- func (s Service) ListGlossary() ([]core.GlossaryTerm, error)
- func (s Service) ListMetrics() ([]core.Metric, error)
- func (s Service) ListModels() ([]core.Model, error)
- func (s Service) ListNotifications(userID string) ([]core.Notification, error)
- func (s Service) ListQuestions() ([]core.Question, error)
- func (s Service) ListRevisions(targetType, targetID string) ([]core.Revision, error)
- func (s Service) ListSegments() ([]core.Segment, error)
- func (s Service) PublishDashboard(id, userID string, update core.DashboardPublicLinkUpdate) (core.Dashboard, error)
- func (s Service) RecordNotification(n core.Notification) error
- func (s Service) Restore(targetType, id string) error
- func (s Service) RestoreDashboard(id string) error
- func (s Service) RestoreQuestion(id string) error
- func (s Service) SaveField(field core.FieldMeta) (core.FieldMeta, error)
- func (s Service) Search(query string) ([]core.SearchHit, error)
- func (s Service) SetDashboardEmbedding(id string, enabled bool, userID string) (core.Dashboard, error)
- func (s Service) Trash() ([]core.TrashItem, error)
- func (s Service) UpdateCollection(id, name, parentID string) (core.Collection, error)
- 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 (s Service) UpdateQuestion(patch core.Question) (core.Question, error)
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 (Service) ArchiveDashboard ¶
func (Service) ArchiveQuestion ¶
func (Service) CreateAlert ¶
func (Service) CreateCollection ¶
func (s Service) CreateCollection(name, parentID, ownerID, ownerGroupID string) (core.Collection, error)
func (Service) CreateDashboard ¶
func (Service) CreateGlossary ¶
func (s Service) CreateGlossary(term core.GlossaryTerm) (core.GlossaryTerm, error)
func (Service) CreateModel ¶
func (Service) CreateQuestion ¶
func (Service) CreateSegment ¶
func (Service) DeleteAlert ¶
func (Service) DeleteBookmark ¶
func (Service) DeleteCollection ¶
func (Service) DisableDashboardPublicLink ¶
func (Service) DuplicateDashboard ¶
func (Service) EnableDashboardPublicLink ¶
func (Service) EnsurePersonalCollection ¶
func (Service) GetDashboardByPublicUUID ¶
func (Service) ImplicitJoin ¶
func (Service) ListBookmarks ¶
func (Service) ListCollections ¶
func (s Service) ListCollections() ([]core.Collection, error)
func (Service) ListFields ¶
func (Service) ListGlossary ¶
func (s Service) ListGlossary() ([]core.GlossaryTerm, error)
func (Service) ListNotifications ¶
func (s Service) ListNotifications(userID string) ([]core.Notification, error)
func (Service) ListRevisions ¶
func (Service) PublishDashboard ¶
func (Service) RecordNotification ¶
func (s Service) RecordNotification(n core.Notification) error
func (Service) RestoreDashboard ¶
func (Service) RestoreQuestion ¶
func (Service) SetDashboardEmbedding ¶
func (Service) UpdateCollection ¶
func (s Service) UpdateCollection(id, name, parentID string) (core.Collection, error)
func (Service) UpdateDashboard ¶
func (Service) UpdateDashboardPublicLink ¶
Click to show internal directories.
Click to hide internal directories.