Documentation ¶
Index ¶
- type Session
- func (s *Session) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)
- func (s *Session) Delete(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) EnsureIndexes() error
- func (s *Session) Get(ctx context.Context, id string) (*dataSource.Source, error)
- func (s *Session) List(ctx context.Context, userID string, filter *dataSource.Filter, ...) (dataSource.Sources, error)
- func (s *Session) Update(ctx context.Context, id string, condition *request.Condition, ...) (*dataSource.Source, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
*storeStructuredMongo.Session
}
func (*Session) Create ¶
func (s *Session) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)
func (*Session) EnsureIndexes ¶
func (*Session) List ¶
func (s *Session) List(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.Sources, error)
type Store ¶
type Store struct {
*storeStructuredMongo.Store
}
func (*Store) EnsureIndexes ¶
func (*Store) NewSession ¶
func (s *Store) NewSession() dataSourceStoreStructured.Session
Click to show internal directories.
Click to hide internal directories.