Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
2789c4f1
Commit
2789c4f1
authored
Sep 04, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsfix: include routes in plugin model
parent
9bafb108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
pkg/plugins/datasource_plugin.go
+8
-9
No files found.
pkg/plugins/datasource_plugin.go
View file @
2789c4f1
...
...
@@ -8,15 +8,14 @@ import (
type
DataSourcePlugin
struct
{
FrontendPluginBase
Annotations
bool
`json:"annotations"`
Metrics
bool
`json:"metrics"`
Alerting
bool
`json:"alerting"`
QueryOptions
map
[
string
]
bool
`json:"queryOptions,omitempty"`
BuiltIn
bool
`json:"builtIn,omitempty"`
Mixed
bool
`json:"mixed,omitempty"`
HasQueryHelp
bool
`json:"hasQueryHelp,omitempty"`
Routes
[]
*
AppPluginRoute
`json:"-"`
Annotations
bool
`json:"annotations"`
Metrics
bool
`json:"metrics"`
Alerting
bool
`json:"alerting"`
QueryOptions
map
[
string
]
bool
`json:"queryOptions,omitempty"`
BuiltIn
bool
`json:"builtIn,omitempty"`
Mixed
bool
`json:"mixed,omitempty"`
HasQueryHelp
bool
`json:"hasQueryHelp,omitempty"`
Routes
[]
*
AppPluginRoute
`json:"routes"`
}
func
(
p
*
DataSourcePlugin
)
Load
(
decoder
*
json
.
Decoder
,
pluginDir
string
)
error
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment