Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) DataSourceStatus(ctx context.Context, name string) (string, error)
- func (c *Client) DescribeDataSource(ctx context.Context, name string, self bool) (string, error)
- func (c *Client) LoadDataSource(ctx context.Context, name string) error
- func (c *Client) Ping(ctx context.Context) (string, error)
- func (c *Client) Query(ctx context.Context, query string, vars map[string]any) (*types.Response, error)
- func (c *Client) RegisterDataSource(ctx context.Context, ds types.DataSource) error
- func (c *Client) UnloadDataSource(ctx context.Context, name string) error
- type ClientConfig
- type Config
- type Info
- type JQRequest
- type Option
- func WithApiKey(apiKey string) Option
- func WithApiKeyCustomHeader(apiKey, header string) Option
- func WithTimeout(timeout time.Duration) Option
- func WithToken(token string) Option
- func WithTransport(transport http.RoundTripper) Option
- func WithUserInfo(id, name string) Option
- func WithUserInfoCustomHeader(id, name, idHeader, nameHeader string) Option
- func WithUserRole(role string) Option
- func WithUserRoleCustomHeader(role, header string) Option
- type Request
- type Service
- func (s *Service) AttachRuntimeSource(ctx context.Context, source sources.RuntimeSource) error
- func (s *Service) Close() error
- 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) ProcessQuery(ctx context.Context, catalog string, req Request) types.Response
- func (s *Service) Query(ctx context.Context, query string, vars map[string]any) (*types.Response, error)
- func (s *Service) QueryCatalog(ctx context.Context, catalog, 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) Schema() *ast.Schema
- func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Service) UnloadDataSource(ctx context.Context, name string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParallelMutationNotSupported = errors.New("parallel mutation queries are not supported")
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.9
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DataSourceStatus ¶ added in v0.1.9
func (*Client) DescribeDataSource ¶ added in v0.1.14
DescribeDataSource returns the description of the data source.
func (*Client) LoadDataSource ¶ added in v0.1.9
func (*Client) RegisterDataSource ¶ added in v0.1.9
type ClientConfig ¶ added in v0.1.9
type ClientConfig struct { Timeout time.Duration Transport http.RoundTripper }
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 Option ¶ added in v0.1.9
type Option func(*ClientConfig)
func WithApiKey ¶ added in v0.1.9
func WithApiKeyCustomHeader ¶ added in v0.1.9
func WithTimeout ¶ added in v0.1.9
func WithTransport ¶ added in v0.1.9
func WithTransport(transport http.RoundTripper) Option
func WithUserInfo ¶ added in v0.1.9
func WithUserInfoCustomHeader ¶ added in v0.1.9
func WithUserRole ¶ added in v0.1.9
func WithUserRoleCustomHeader ¶ added in v0.1.9
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AttachRuntimeSource ¶
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) ProcessQuery ¶
func (*Service) QueryCatalog ¶
func (*Service) RegisterDataSource ¶ added in v0.1.8
Source Files
¶
Click to show internal directories.
Click to hide internal directories.