Documentation
¶
Index ¶
- Variables
- type ChunkProcessFunc
- type Client
- type ClientConfig
- type Config
- type EmbedderConfig
- type Info
- type Option
- type Service
- func (s *Service) AttachRuntimeSource(ctx context.Context, source sources.RuntimeSource) error
- func (s *Service) Close() error
- func (s *Service) ClusterSource() *cluster.Source
- func (s *Service) Commit(ctx context.Context) error
- func (s *Service) ContextWithTx(ctx context.Context) (context.Context, error)
- func (s *Service) CoreDBVersion() coredb.Info
- func (s *Service) DataSourceStatus(ctx context.Context, name string) (string, error)
- func (s *Service) DescribeDataSource(ctx context.Context, name string, self bool) (string, error)
- func (s *Service) Info() Info
- func (s *Service) Init(ctx context.Context) (err error)
- func (s *Service) LoadDataSource(ctx context.Context, name string) error
- func (s *Service) ProcessOperation(ctx context.Context, provider catalog.Provider, op *catalog.Operation) (map[string]any, map[string]any, error)
- func (s *Service) ProcessQuery(ctx context.Context, req types.Request) types.Response
- func (s *Service) ProcessStreamQuery(ctx context.Context, query string, vars map[string]any) (table db.ArrowTable, finalize func(), err error)
- func (s *Service) Query(ctx context.Context, query string, vars map[string]any) (*types.Response, error)
- func (s *Service) RegisterDataSource(ctx context.Context, ds types.DataSource) error
- func (s *Service) Rollback(ctx context.Context) error
- func (s *Service) SchemaProvider() catalog.Provider
- func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Service) UnloadDataSource(ctx context.Context, name string) error
- type StreamMessage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewClient = client.NewClient WithApiKey = client.WithApiKey WithApiKeyCustomHeader = client.WithApiKeyCustomHeader WithUserRole = client.WithUserRole WithUserRoleCustomHeader = client.WithUserRoleCustomHeader WithUserInfo = client.WithUserInfo WithUserInfoCustomHeader = client.WithUserInfoCustomHeader WithTimeout = client.WithTimeout WithTransport = client.WithTransport WithToken = client.WithToken WithHttpUrl = client.WithHttpUrl WithJQQueryUrl = client.WithJQQueryUrl )
View Source
var ErrEmptyRequest = errors.New("empty request")
View Source
var ErrParallelMutationNotSupported = errors.New("parallel mutation queries are not supported")
Functions ¶
This section is empty.
Types ¶
type ChunkProcessFunc ¶ added in v0.1.20
type ClientConfig ¶ added in v0.1.9
type ClientConfig = client.ClientConfig
type Config ¶
type Config struct {
DB db.Config
AdminUI bool
AdminUIFetchPath string
Debug bool
Profiling bool
AllowParallel bool
MaxParallelQueries int
MaxDepth int
SchemaCacheMaxEntries int // LRU cache max entries (0 = default 10000)
SchemaCacheTTL time.Duration // LRU cache TTL (0 = default 10m)
MCPEnabled bool // Enable MCP endpoint on /mcp
CoreDB *coredb.Source
Auth *auth.Config
Cache cache.Config
Embedder EmbedderConfig
Cluster cluster.ClusterConfig
}
type EmbedderConfig ¶ added in v0.3.0
type Info ¶ added in v0.1.9
type Info struct {
AdminUI bool `json:"admin_ui"`
Debug bool `json:"debug"`
AllowParallel bool `json:"allow_parallel"`
MaxParallelQueries int `json:"max_parallel_queries"`
MaxDepth int `json:"max_depth"`
DuckDB db.Config `json:"duckdb"`
CoreDB coredb.Info `json:"coredb"`
Auth []auth.ProviderInfo `json:"auth"`
Cache cache.Config `json:"cache"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AttachRuntimeSource ¶
func (*Service) ClusterSource ¶ added in v0.3.0
ClusterSource returns the cluster source, or nil if cluster mode is disabled.
func (*Service) ContextWithTx ¶
func (*Service) CoreDBVersion ¶ added in v0.1.9
func (*Service) DataSourceStatus ¶ added in v0.1.9
func (*Service) DescribeDataSource ¶ added in v0.1.14
DescribeDataSource returns the formatted schema definition of a data source by its name.
func (*Service) LoadDataSource ¶ added in v0.1.8
func (*Service) ProcessOperation ¶ added in v0.1.18
func (*Service) ProcessQuery ¶
func (*Service) ProcessStreamQuery ¶ added in v0.1.20
func (*Service) RegisterDataSource ¶ added in v0.1.8
func (*Service) SchemaProvider ¶ added in v0.3.0
type StreamMessage ¶ added in v0.1.20
type StreamMessage struct {
Type string `json:"type"`
DataObject string `json:"data_object,omitempty"` // Optional, used for streaming table data
SelectedFields []string `json:"selected_fields,omitempty"` // Optional, used for streaming table data
Query string `json:"query,omitempty"`
Variables map[string]interface{} `json:"variables,omitempty"`
Error string `json:"error,omitempty"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client provides an IPC client for the Hugr query engine.
|
Package client provides an IPC client for the Hugr query engine. |
|
cmd
|
|
|
dev-server
command
|
|
|
hugr-tools
command
|
|
|
integration-test
|
|
|
internal
|
|
|
http_test_service
command
|
|
|
pkg
|
|
|
catalog/db/schema
Package schema provides serialization utilities for storing GraphQL schema metadata in database tables.
|
Package schema provides serialization utilities for storing GraphQL schema metadata in database tables. |
Click to show internal directories.
Click to hide internal directories.