Documentation
¶
Index ¶
- func BuildCheckInRequest(fileUUID, csvPath string) (*models.CheckInRequest, error)
- func BuildCheckInRequestWithOverrides(fileUUID, csvPath string, overrides *models.CheckInOverrides) (*models.CheckInRequest, error)
- func FetchGroups(ctx context.Context, baseURL, accessToken string, httpClient *http.Client) (*models.GroupsResponse, error)
- type APIError
- type ActionPayload
- type ActionResponse
- type ActionStatusResponse
- type Analysis
- type AuthClient
- type Client
- func (c *Client) CheckIn(ctx context.Context, userInputID, fileID string, req *models.CheckInRequest) (string, error)
- func (c *Client) DeleteReport(ctx context.Context, reportID int) error
- func (c *Client) DeleteUpload(ctx context.Context, userInputID string) error
- func (c *Client) EnsureValidToken(ctx context.Context) error
- func (c *Client) ExecuteAction(ctx context.Context, coreID string, payload *ActionPayload, ...) (map[string]interface{}, error)
- func (c *Client) GetResults(ctx context.Context, reportID int, opts *models.ResultsOptions) ([]byte, error)
- func (c *Client) GetStatus(ctx context.Context, reportID int) (*models.StatusResponse, error)
- func (c *Client) StartForecast(ctx context.Context, versionID string, req *models.ForecastRequest) (int, error)
- func (c *Client) UploadCSV(ctx context.Context, filePath string) (*UploadResult, error)
- type UploadResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCheckInRequest ¶
func BuildCheckInRequest(fileUUID, csvPath string) (*models.CheckInRequest, error)
func BuildCheckInRequestWithOverrides ¶ added in v0.1.3
func BuildCheckInRequestWithOverrides(fileUUID, csvPath string, overrides *models.CheckInOverrides) (*models.CheckInRequest, error)
BuildCheckInRequestWithOverrides builds the check-in request using optional overrides.
func FetchGroups ¶ added in v0.2.0
Types ¶
type ActionPayload ¶
type ActionResponse ¶
type ActionStatusResponse ¶
type Analysis ¶ added in v0.1.3
type Analysis struct {
Delimiter string
Header []string
DateColumn string
DateFormat string
ValueCols []string
GroupCols []string
}
Analysis describes detected CSV structure.
func AnalyzeCSV ¶ added in v0.1.3
AnalyzeCSV reports detected columns and delimiter without building a request.
type AuthClient ¶
type AuthClient struct {
// contains filtered or unexported fields
}
func NewAuthClient ¶
func NewAuthClient(authURL string, httpClient *http.Client) *AuthClient
func (*AuthClient) Authenticate ¶
func (a *AuthClient) Authenticate(username, password, totp string) (*models.TokenResponse, error)
func (*AuthClient) RefreshToken ¶
func (a *AuthClient) RefreshToken(refreshToken string) (*models.TokenResponse, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteReport ¶
func (*Client) DeleteUpload ¶
func (*Client) ExecuteAction ¶
func (*Client) GetResults ¶
func (*Client) StartForecast ¶
type UploadResult ¶
Click to show internal directories.
Click to hide internal directories.