Documentation ¶
Index ¶
- type Column
- type DomoAPI
- func (d *DomoAPI) AddDataToDataset(datasetID string, data string, replace bool, token string) error
- func (d *DomoAPI) CreateAccessToken() (*Token, error)
- func (d *DomoAPI) CreateDataset(dds DomoDataset, token string) (*DomoDataset, error)
- func (d *DomoAPI) GetDataByDatasetID(token string, datasetID string, header bool) (string, error)
- func (d *DomoAPI) GetDatasetIDByName(datasetName string, token string) ([]string, error)
- func (d *DomoAPI) ListDatasets(token string) ([]DomoDataset, error)
- type DomoDataset
- type Owner
- type RequestHandler
- type RequestHandlerService
- type Schema
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomoAPI ¶
type DomoAPI struct {
// contains filtered or unexported fields
}
func NewDomoAPI ¶
func NewDomoAPI() *DomoAPI
func (*DomoAPI) AddDataToDataset ¶
AddDataToDataset adds data to the given dataset. Use replace=true to reset dataset's data with the given data.
func (*DomoAPI) CreateAccessToken ¶
CreateAccessToken create domo accessToken using key clientKey and clientSecrete in .env file.
func (*DomoAPI) CreateDataset ¶
func (d *DomoAPI) CreateDataset(dds DomoDataset, token string) (*DomoDataset, error)
CreateDataset create dataset on domo instance
func (*DomoAPI) GetDataByDatasetID ¶
GetDataByDatasetID fetch data given domo's datasetID. Use header=true to include header in the response
func (*DomoAPI) GetDatasetIDByName ¶
GetDatasetIDByName get domo datasetID using domo dataset name
func (*DomoAPI) ListDatasets ¶
func (d *DomoAPI) ListDatasets(token string) ([]DomoDataset, error)
ListDatasets list all domo datasets in the belonging domo instance
type DomoDataset ¶
type DomoDataset struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Rows int `json:"rows,omitempty"` Columns int `json:"columns,omitempty"` Schema *Schema `json:"schema,omitempty"` Owner *Owner `json:"owner,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` }
DomoDataset
type RequestHandler ¶
type RequestHandler struct{}
type RequestHandlerService ¶
Click to show internal directories.
Click to hide internal directories.