Documentation ¶
Index ¶
- Variables
- type CreateQueryInQueryHistoryCommand
- type DeleteQueryFromQueryHistoryResponse
- type PatchQueryCommentInQueryHistoryCommand
- type QueryHistory
- type QueryHistoryDTO
- type QueryHistoryResponse
- type QueryHistorySearchResponse
- type QueryHistorySearchResult
- type QueryHistoryService
- func (s QueryHistoryService) CreateQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, ...) (QueryHistoryDTO, error)
- func (s QueryHistoryService) DeleteQueryFromQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (int64, error)
- func (s QueryHistoryService) PatchQueryCommentInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string, ...) (QueryHistoryDTO, error)
- func (s QueryHistoryService) SearchInQueryHistory(ctx context.Context, user *models.SignedInUser, ...) (QueryHistorySearchResult, error)
- func (s QueryHistoryService) StarQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (QueryHistoryDTO, error)
- func (s QueryHistoryService) UnstarQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (QueryHistoryDTO, error)
- type QueryHistoryStar
- type SearchInQueryHistoryQuery
- type Service
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CreateQueryInQueryHistoryCommand ¶
type CreateQueryInQueryHistoryCommand struct { DatasourceUID string `json:"datasourceUid"` Queries *simplejson.Json `json:"queries"` }
type DeleteQueryFromQueryHistoryResponse ¶
type DeleteQueryFromQueryHistoryResponse struct { ID int64 `json:"id"` Message string `json:"message"` }
DeleteQueryFromQueryHistoryResponse is the response struct for deleting a query from query history
type PatchQueryCommentInQueryHistoryCommand ¶
type PatchQueryCommentInQueryHistoryCommand struct {
Comment string `json:"comment"`
}
type QueryHistory ¶
type QueryHistoryDTO ¶
type QueryHistoryDTO struct { UID string `json:"uid" xorm:"uid"` DatasourceUID string `json:"datasourceUid" xorm:"datasource_uid"` CreatedBy int64 `json:"createdBy"` CreatedAt int64 `json:"createdAt"` Comment string `json:"comment"` Queries *simplejson.Json `json:"queries"` Starred bool `json:"starred"` }
type QueryHistoryResponse ¶
type QueryHistoryResponse struct {
Result QueryHistoryDTO `json:"result"`
}
QueryHistoryResponse is a response struct for QueryHistoryDTO
type QueryHistorySearchResponse ¶
type QueryHistorySearchResponse struct {
Result QueryHistorySearchResult `json:"result"`
}
type QueryHistorySearchResult ¶
type QueryHistorySearchResult struct { TotalCount int `json:"totalCount"` QueryHistory []QueryHistoryDTO `json:"queryHistory"` Page int `json:"page"` PerPage int `json:"perPage"` }
type QueryHistoryService ¶
type QueryHistoryService struct { SQLStore *sqlstore.SQLStore Cfg *setting.Cfg RouteRegister routing.RouteRegister // contains filtered or unexported fields }
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, sqlStore *sqlstore.SQLStore, routeRegister routing.RouteRegister) *QueryHistoryService
func (QueryHistoryService) CreateQueryInQueryHistory ¶
func (s QueryHistoryService) CreateQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, cmd CreateQueryInQueryHistoryCommand) (QueryHistoryDTO, error)
func (QueryHistoryService) DeleteQueryFromQueryHistory ¶
func (s QueryHistoryService) DeleteQueryFromQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (int64, error)
func (QueryHistoryService) PatchQueryCommentInQueryHistory ¶
func (s QueryHistoryService) PatchQueryCommentInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string, cmd PatchQueryCommentInQueryHistoryCommand) (QueryHistoryDTO, error)
func (QueryHistoryService) SearchInQueryHistory ¶
func (s QueryHistoryService) SearchInQueryHistory(ctx context.Context, user *models.SignedInUser, query SearchInQueryHistoryQuery) (QueryHistorySearchResult, error)
func (QueryHistoryService) StarQueryInQueryHistory ¶
func (s QueryHistoryService) StarQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (QueryHistoryDTO, error)
func (QueryHistoryService) UnstarQueryInQueryHistory ¶
func (s QueryHistoryService) UnstarQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (QueryHistoryDTO, error)
type QueryHistoryStar ¶
type Service ¶
type Service interface { CreateQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, cmd CreateQueryInQueryHistoryCommand) (QueryHistoryDTO, error) SearchInQueryHistory(ctx context.Context, user *models.SignedInUser, query SearchInQueryHistoryQuery) (QueryHistorySearchResult, error) DeleteQueryFromQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (int64, error) PatchQueryCommentInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string, cmd PatchQueryCommentInQueryHistoryCommand) (QueryHistoryDTO, error) StarQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (QueryHistoryDTO, error) UnstarQueryInQueryHistory(ctx context.Context, user *models.SignedInUser, UID string) (QueryHistoryDTO, error) }
Click to show internal directories.
Click to hide internal directories.