Documentation ¶
Index ¶
- type DataSourceSession
- func (d *DataSourceSession) CreateUserDataSource(ctx context.Context, userID string, create *data.DataSourceCreate) (*data.DataSource, error)
- func (d *DataSourceSession) DeleteDataSource(ctx context.Context, id string) error
- func (d *DataSourceSession) EnsureIndexes() error
- func (d *DataSourceSession) GetDataSource(ctx context.Context, id string) (*data.DataSource, error)
- func (d *DataSourceSession) ListUserDataSources(ctx context.Context, userID string, filter *data.DataSourceFilter, ...) (data.DataSources, error)
- func (d *DataSourceSession) UpdateDataSource(ctx context.Context, id string, update *data.DataSourceUpdate) (*data.DataSource, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSourceSession ¶ added in v1.20.0
func (*DataSourceSession) CreateUserDataSource ¶ added in v1.20.0
func (d *DataSourceSession) CreateUserDataSource(ctx context.Context, userID string, create *data.DataSourceCreate) (*data.DataSource, error)
func (*DataSourceSession) DeleteDataSource ¶ added in v1.20.0
func (d *DataSourceSession) DeleteDataSource(ctx context.Context, id string) error
func (*DataSourceSession) EnsureIndexes ¶ added in v1.20.0
func (d *DataSourceSession) EnsureIndexes() error
func (*DataSourceSession) GetDataSource ¶ added in v1.20.0
func (d *DataSourceSession) GetDataSource(ctx context.Context, id string) (*data.DataSource, error)
func (*DataSourceSession) ListUserDataSources ¶ added in v1.20.0
func (d *DataSourceSession) ListUserDataSources(ctx context.Context, userID string, filter *data.DataSourceFilter, pagination *page.Pagination) (data.DataSources, error)
func (*DataSourceSession) UpdateDataSource ¶ added in v1.20.0
func (d *DataSourceSession) UpdateDataSource(ctx context.Context, id string, update *data.DataSourceUpdate) (*data.DataSource, error)
type Store ¶
func (*Store) EnsureIndexes ¶ added in v1.20.0
func (*Store) NewDataSourceSession ¶ added in v1.20.0
func (s *Store) NewDataSourceSession() store.DataSourceSession
Click to show internal directories.
Click to hide internal directories.