Versions in this module Expand all Collapse all v0 v0.1.0 Aug 5, 2026 Changes in this version + var ErrNoData = httpclient.ErrNoData + type APIError = httpclient.APIError + type Client struct + func NewClient(apiKey string, opts ...Option) (*Client, error) + func NewClientFromEnv(opts ...Option) (*Client, error) + func (c *Client) KeyStatisticList(ctx context.Context, p KeyStatisticListParams) (*KeyStatisticListResult, error) + func (c *Client) StatisticItemList(ctx context.Context, p ItemListParams) (*ItemListResult, error) + func (c *Client) StatisticMeta(ctx context.Context, p MetaParams) (*MetaResult, error) + func (c *Client) StatisticSearch(ctx context.Context, p SearchParams) (*SearchResult, error) + func (c *Client) StatisticSearchAll(ctx context.Context, p SearchParams) ([]SearchRow, error) + func (c *Client) StatisticTableList(ctx context.Context, p TableListParams) (*TableListResult, error) + func (c *Client) StatisticWord(ctx context.Context, p WordParams) (*WordResult, error) + type Cycle string + const CycleAnnual + const CycleDaily + const CycleMonthly + const CycleQuarterly + const CycleSemiAnnual + const CycleSemiMonthly + type ItemListParams struct + Page Page + StatCode string + type ItemListResult struct + Rows []ItemRow + TotalCount int + type ItemRow struct + Cycle string + DataCnt int + EndTime string + GrpCode string + GrpName string + ItemCode string + ItemName string + PItemCode string + PItemName string + StartTime string + StatCode string + StatName string + UnitName string + Weight string + type KeyStatRow struct + ClassName string + Cycle string + DataValue string + KeyStatName string + UnitName string + func (r KeyStatRow) Float64() (float64, error) + type KeyStatisticListParams struct + Page Page + type KeyStatisticListResult struct + RowCount int + Rows []KeyStatRow + TotalCount int + type MetaParams struct + Name string + Page Page + type MetaResult struct + Rows []MetaRow + TotalCount int + type MetaRow struct + ContCode string + ContName string + Lvl string + MetaData string + PContCode string + type Option func(*clientOptions) + func WithBaseURL(u string) Option + func WithHTTPClient(c *http.Client) Option + func WithLanguage(lang string) Option + func WithTimeout(d time.Duration) Option + type Page struct + End int + Start int + type SearchParams struct + Cycle Cycle + End string + ItemCode1 string + ItemCode2 string + ItemCode3 string + ItemCode4 string + Page Page + Start string + StatCode string + type SearchResult struct + Rows []SearchRow + TotalCount int + type SearchRow struct + DataValue string + ItemCode1 string + ItemCode2 string + ItemCode3 string + ItemCode4 string + ItemName1 string + ItemName2 string + ItemName3 string + ItemName4 string + StatCode string + StatName string + Time string + UnitName string + Weight string + func (r SearchRow) Float64() (float64, error) + type TableListParams struct + Page Page + StatCode string + type TableListResult struct + Rows []TableRow + TotalCount int + type TableRow struct + Cycle string + OrgName string + PStatCode string + SrchYN string + StatCode string + StatName string + type WordParams struct + Page Page + Word string + type WordResult struct + Rows []WordRow + TotalCount int + type WordRow struct + Content string + Word string