Documentation
¶
Index ¶
Constants ¶
View Source
const SourceKind string = "dgraph"
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name" validate:"required"`
Kind string `yaml:"kind" validate:"required"`
DgraphUrl string `yaml:"dgraphUrl" validate:"required"`
User string `yaml:"user"`
Password string `yaml:"password"`
Namespace uint64 `yaml:"namespace"`
ApiKey string `yaml:"apiKey"`
}
func (Config) Initialize ¶
func (Config) SourceConfigKind ¶
type DgraphClient ¶
type DgraphClient struct {
*HttpToken
// contains filtered or unexported fields
}
func (*DgraphClient) ExecuteQuery ¶
type HttpToken ¶
type HttpToken struct {
UserId string
Password string
AccessJwt string
RefreshToken string
Namespace uint64
}
HttpToken stores credentials for making HTTP request
type Source ¶
type Source struct {
Name string `yaml:"name"`
Kind string `yaml:"kind"`
Client *DgraphClient `yaml:"client"`
}
func (*Source) DgraphClient ¶
func (s *Source) DgraphClient() *DgraphClient
func (*Source) SourceKind ¶
Click to show internal directories.
Click to hide internal directories.