Documentation ¶
Index ¶
- type Session
- func (s *Session) Create(ctx context.Context, userID string, create *dataSource.Create) (*dataSource.Source, error)
- func (s *Session) Destroy(ctx context.Context, id string, condition *request.Condition) (bool, error)
- func (s *Session) DestroyAll(ctx context.Context, userID string) (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.SourceArray, 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) DestroyAll ¶ added in v1.31.0
func (*Session) EnsureIndexes ¶
func (*Session) List ¶
func (s *Session) List(ctx context.Context, userID string, filter *dataSource.Filter, pagination *page.Pagination) (dataSource.SourceArray, 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.