sql_api

package
v0.0.0-...-cfc85e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLAPIParams

type SQLAPIParams struct {
	StartAt time.Time
	EndAt   time.Time
}

func ParseOpts

func ParseOpts(opts map[string]interface{}) (SQLAPIParams, error)

type SQLAPISource

type SQLAPISource struct {
	Model    *models.Model
	Endpoint string
	APIToken string
	Query    string
	Date     string
}

func (*SQLAPISource) Close

func (s *SQLAPISource) Close() error

func (*SQLAPISource) FetchData

func (s *SQLAPISource) FetchData(opts map[string]interface{}) ([]map[string]interface{}, error)

func (*SQLAPISource) Init

func (s *SQLAPISource) Init(config map[string]interface{}, model *models.Model) error

func (*SQLAPISource) Transform

func (s *SQLAPISource) Transform(item interface{}) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL