Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBaseURL = "https://api.chainbase.online/" DefaultAPIKey = "demo" DefaultUserAgent = "chainbase-grafana" )
View Source
const (
CodeOK = 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL *url.URL UserAgent string APIKey string DataWarehouse *DataWarehouseService // contains filtered or unexported fields }
func NewClient ¶
func NewClient(options ...ClientOption) (*Client, error)
type ClientOption ¶
func WithAPIKey ¶
func WithAPIKey(apiKey string) ClientOption
type DataWarehouseData ¶
type DataWarehouseData struct { TaskID string `json:"task_id"` Rows int `json:"rows"` RowsRead int `json:"rows_read"` BytesRead int `json:"bytes_read"` Elapsed float32 `json:"elapsed"` Meta []DataWarehouseDataMeta `json:"meta"` Result []map[string]any `json:"result"` ErrMsg string `json:"err_msg,omitempty"` NextPage int `json:"next_page"` }
type DataWarehouseDataMeta ¶
type DataWarehouseService ¶
type DataWarehouseService service
Click to show internal directories.
Click to hide internal directories.