Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) CheckHealth(ctx context.Context) error
- func (p *Plugin) Dispose()
- func (p *Plugin) ExecQuery(ctx context.Context, q *cassandra.Query) (data.Frames, error)
- func (p *Plugin) GetColumns(keyspace, table, needType string) ([]string, error)
- func (p *Plugin) GetKeyspaces(ctx context.Context) ([]string, error)
- func (p *Plugin) GetTables(keyspace string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin represents grafana datasource plugin.
func (*Plugin) CheckHealth ¶
CheckHealth executes repository Ping method to check database health.
func (*Plugin) Dispose ¶
func (p *Plugin) Dispose()
Dispose closes all connections to Cassandra cluster.
func (*Plugin) GetColumns ¶
GetColumns fetches and returns Cassandra's list of columns of given type for provided keyspace and table.
func (*Plugin) GetKeyspaces ¶
GetKeyspaces fetches and returns Cassandra's list of keyspaces.
Click to show internal directories.
Click to hide internal directories.