Documentation
¶
Index ¶
- func IsCurrentVersion(version int) bool
- func ValidateManifest(content []byte) error
- type CollectionInfo
- type ConnectionInfo
- type ConnectionType
- type DgraphConnectionInfo
- type EndpointAuthType
- type EndpointInfo
- type EndpointType
- type GraphqlEndpointInfo
- type HTTPConnectionInfo
- type IndexInfo
- type Manifest
- type ModelInfo
- type MysqlConnectionInfo
- type Neo4jConnectionInfo
- type OptionsInfo
- type PostgresqlConnectionInfo
- type SearchMethodInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCurrentVersion ¶
func ValidateManifest ¶
Types ¶
type CollectionInfo ¶
type CollectionInfo struct {
Name string `json:"-"`
SearchMethods map[string]SearchMethodInfo `json:"searchMethods"`
}
type ConnectionInfo ¶
type ConnectionInfo interface {
ConnectionName() string
ConnectionType() ConnectionType
Hash() string
Variables() []string
}
type ConnectionType ¶
type ConnectionType string
const ConnectionTypeDgraph ConnectionType = "dgraph"
const ConnectionTypeHTTP ConnectionType = "http"
const ConnectionTypeMysql ConnectionType = "mysql"
const ConnectionTypeNeo4j ConnectionType = "neo4j"
const ConnectionTypePostgresql ConnectionType = "postgresql"
type DgraphConnectionInfo ¶
type DgraphConnectionInfo struct {
Name string `json:"-"`
Type ConnectionType `json:"type"`
ConnStr string `json:"connString"`
GrpcTarget string `json:"grpcTarget"`
Key string `json:"key"`
}
func (DgraphConnectionInfo) ConnectionName ¶
func (info DgraphConnectionInfo) ConnectionName() string
func (DgraphConnectionInfo) ConnectionType ¶
func (info DgraphConnectionInfo) ConnectionType() ConnectionType
func (DgraphConnectionInfo) Hash ¶
func (info DgraphConnectionInfo) Hash() string
func (DgraphConnectionInfo) Variables ¶
func (info DgraphConnectionInfo) Variables() []string
type EndpointAuthType ¶
type EndpointAuthType string
const ( EndpointAuthNone EndpointAuthType = "none" EndpointAuthBearerToken EndpointAuthType = "bearer-token" )
type EndpointInfo ¶
type EndpointInfo interface {
EndpointName() string
EndpointType() EndpointType
EndpointAuth() EndpointAuthType
}
type GraphqlEndpointInfo ¶
type GraphqlEndpointInfo struct {
Name string `json:"-"`
Type EndpointType `json:"type"`
Path string `json:"path"`
Auth EndpointAuthType `json:"auth"`
}
func (GraphqlEndpointInfo) EndpointAuth ¶
func (e GraphqlEndpointInfo) EndpointAuth() EndpointAuthType
func (GraphqlEndpointInfo) EndpointName ¶
func (e GraphqlEndpointInfo) EndpointName() string
func (GraphqlEndpointInfo) EndpointType ¶
func (e GraphqlEndpointInfo) EndpointType() EndpointType
type HTTPConnectionInfo ¶
type HTTPConnectionInfo struct {
Name string `json:"-"`
Type ConnectionType `json:"type"`
Endpoint string `json:"endpoint"`
BaseURL string `json:"baseURL"`
Headers map[string]string `json:"headers"`
QueryParameters map[string]string `json:"queryParameters"`
}
func (HTTPConnectionInfo) ConnectionName ¶
func (info HTTPConnectionInfo) ConnectionName() string
func (HTTPConnectionInfo) ConnectionType ¶
func (info HTTPConnectionInfo) ConnectionType() ConnectionType
func (HTTPConnectionInfo) Hash ¶
func (info HTTPConnectionInfo) Hash() string
func (HTTPConnectionInfo) Variables ¶
func (info HTTPConnectionInfo) Variables() []string
type IndexInfo ¶
type IndexInfo struct {
Type string `json:"type"`
Options OptionsInfo `json:"options"`
}
type Manifest ¶
type Manifest struct {
Version int `json:"-"`
Endpoints map[string]EndpointInfo `json:"endpoints"`
Models map[string]ModelInfo `json:"models"`
Connections map[string]ConnectionInfo `json:"connections"`
Collections map[string]CollectionInfo `json:"collections"`
}
func ReadManifest ¶
func (*Manifest) GetVariables ¶
func (*Manifest) IsCurrentVersion ¶
type ModelInfo ¶
type MysqlConnectionInfo ¶ added in v0.17.0
type MysqlConnectionInfo struct {
Name string `json:"-"`
Type ConnectionType `json:"type"`
ConnStr string `json:"connString"`
}
func (MysqlConnectionInfo) ConnectionName ¶ added in v0.17.0
func (info MysqlConnectionInfo) ConnectionName() string
func (MysqlConnectionInfo) ConnectionType ¶ added in v0.17.0
func (info MysqlConnectionInfo) ConnectionType() ConnectionType
func (MysqlConnectionInfo) Hash ¶ added in v0.17.0
func (info MysqlConnectionInfo) Hash() string
func (MysqlConnectionInfo) Variables ¶ added in v0.17.0
func (info MysqlConnectionInfo) Variables() []string
type Neo4jConnectionInfo ¶ added in v0.15.0
type Neo4jConnectionInfo struct {
Name string `json:"-"`
Type ConnectionType `json:"type"`
DbUri string `json:"dbUri"`
Username string `json:"username"`
Password string `json:"password"`
}
func (Neo4jConnectionInfo) ConnectionName ¶ added in v0.15.0
func (info Neo4jConnectionInfo) ConnectionName() string
func (Neo4jConnectionInfo) ConnectionType ¶ added in v0.15.0
func (info Neo4jConnectionInfo) ConnectionType() ConnectionType
func (Neo4jConnectionInfo) Hash ¶ added in v0.15.0
func (info Neo4jConnectionInfo) Hash() string
func (Neo4jConnectionInfo) Variables ¶ added in v0.15.0
func (info Neo4jConnectionInfo) Variables() []string
type OptionsInfo ¶
type PostgresqlConnectionInfo ¶
type PostgresqlConnectionInfo struct {
Name string `json:"-"`
Type ConnectionType `json:"type"`
ConnStr string `json:"connString"`
}
func (PostgresqlConnectionInfo) ConnectionName ¶
func (info PostgresqlConnectionInfo) ConnectionName() string
func (PostgresqlConnectionInfo) ConnectionType ¶
func (info PostgresqlConnectionInfo) ConnectionType() ConnectionType
func (PostgresqlConnectionInfo) Hash ¶
func (info PostgresqlConnectionInfo) Hash() string
func (PostgresqlConnectionInfo) Variables ¶
func (info PostgresqlConnectionInfo) Variables() []string
type SearchMethodInfo ¶
Click to show internal directories.
Click to hide internal directories.