Documentation
¶
Index ¶
Constants ¶
View Source
const ToolKind string = "dgraph-dql"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Kind string `yaml:"kind" validate:"required"`
Source string `yaml:"source" validate:"required"`
Description string `yaml:"description" validate:"required"`
Statement string `yaml:"statement" validate:"required"`
IsQuery bool `yaml:"isQuery"`
Timeout string `yaml:"timeout"`
Parameters tools.Parameters `yaml:"parameters"`
}
func (Config) Initialize ¶
func (Config) ToolConfigKind ¶
type Tool ¶
type Tool struct {
Name string `yaml:"name"`
Kind string `yaml:"kind"`
Parameters tools.Parameters `yaml:"parameters"`
AuthRequired []string `yaml:"authRequired"`
DgraphClient *dgraph.DgraphClient
IsQuery bool
Timeout string
Statement string
// contains filtered or unexported fields
}
func (Tool) Authorized ¶
Click to show internal directories.
Click to hide internal directories.