Documentation ¶
Index ¶
- func Insert(id, name, pluginSrc string, data []byte, workspaceID uuid.UUID) string
- type DataSource
- type Main
- func (main Main) Delete(id string) errors.Error
- func (main Main) FindAllByWorkspace(workspaceID uuid.UUID) ([]Response, errors.Error)
- func (main Main) FindByID(id string) (Response, errors.Error)
- func (main Main) GetMetrics(dataSourceID string) (datasource.MetricList, errors.Error)
- func (main Main) Parse(dataSource io.ReadCloser) (Request, errors.Error)
- func (main Main) Save(dataSource Request) (Response, errors.Error)
- func (main Main) TestConnection(pluginSrc string, datasourceData json.RawMessage) errors.Error
- func (main Main) Validate(dataSource Request) errors.ErrorList
- type Request
- type Response
- type UseCases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataSource ¶
type Main ¶
type Main struct {
// contains filtered or unexported fields
}
func (Main) FindAllByWorkspace ¶
func (Main) GetMetrics ¶
func (main Main) GetMetrics(dataSourceID string) (datasource.MetricList, errors.Error)
func (Main) TestConnection ¶
type UseCases ¶
type UseCases interface { Parse(dataSource io.ReadCloser) (Request, errors.Error) FindAllByWorkspace(workspaceID uuid.UUID) ([]Response, errors.Error) FindByID(id string) (Response, errors.Error) Save(dataSource Request) (Response, errors.Error) Delete(id string) errors.Error GetMetrics(dataSourceID string) (datasource.MetricList, errors.Error) Validate(dataSource Request) errors.ErrorList TestConnection(pluginSrc string, datasourceData json.RawMessage) errors.Error }
Click to show internal directories.
Click to hide internal directories.