Documentation
ΒΆ
Index ΒΆ
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type AuthenticationError ΒΆ
type AuthenticationError struct {
DFError
}
AuthenticationError is raised when the API key is invalid or expired.
func NewAuthenticationError ΒΆ
func NewAuthenticationError(msg string) *AuthenticationError
type ClientOptions ΒΆ
ClientOptions allows configuring the DFClient.
type DFClient ΒΆ
type DFClient struct {
APIKey string
BaseURL string
HTTPClient *http.Client
Datasets *DatasetService
}
DFClient is the main REST client for the Dataflare API.
func NewClient ΒΆ
func NewClient(opts *ClientOptions) *DFClient
NewClient creates a new DFClient with the provided options.
type DFError ΒΆ
type DFError struct {
Message string
}
DFError is the base error for all Dataflare SDK errors.
type DFGRPCClient ΒΆ
type DFGRPCClient struct {
APIKey string
Target string
Conn *grpc.ClientConn
}
DFGRPCClient is a high-performance gRPC client for the Dataflare API.
func NewGRPCClient ΒΆ
func NewGRPCClient(target string) (*DFGRPCClient, error)
NewGRPCClient creates a new DFGRPCClient for high-performance binary streaming.
func (*DFGRPCClient) Call ΒΆ
func (c *DFGRPCClient) Call(ctx context.Context, method string, req interface{}, resp interface{}) error
Call performs a gRPC call with the API key injected into the request metadata.
func (*DFGRPCClient) Close ΒΆ
func (c *DFGRPCClient) Close() error
Close closes the gRPC connection.
type DatasetService ΒΆ
type DatasetService struct {
// contains filtered or unexported fields
}
DatasetService handles dataset-related operations.
func (*DatasetService) Query ΒΆ
func (s *DatasetService) Query(dataset string, params map[string]interface{}) (*models.DatasetResponse, error)
Query performs a paginated query on a dataset.
type RateLimitError ΒΆ
type RateLimitError struct {
DFError
}
RateLimitError is raised when the request limit is exceeded.
func NewRateLimitError ΒΆ
func NewRateLimitError(msg string) *RateLimitError