Documentation ¶
Index ¶
- func NewProjectMemberService(db *sqlx.DB, l *slog.Logger) *projectMemberService
- func NewProjectService(db *sqlx.DB, l *slog.Logger) *projectService
- func NewStorageStatusWrapper[E datastore.Entity](s datastore.Storage[E]) datastore.Storage[E]
- func NewTenantMemberService(db *sqlx.DB, l *slog.Logger) *tenantMemberService
- func NewTenantService(db *sqlx.DB, l *slog.Logger) *tenantService
- type StorageStatusWrapper
- func (s StorageStatusWrapper[E]) Create(ctx context.Context, ve E) error
- func (s StorageStatusWrapper[E]) Delete(ctx context.Context, id string) error
- func (s StorageStatusWrapper[E]) DeleteAll(ctx context.Context, ids ...string) error
- func (s StorageStatusWrapper[E]) Find(ctx context.Context, filter map[string]any, paging *v1.Paging) ([]E, *uint64, error)
- func (s StorageStatusWrapper[E]) Get(ctx context.Context, id string) (E, error)
- func (s StorageStatusWrapper[E]) GetHistory(ctx context.Context, id string, at time.Time, ve E) error
- func (s StorageStatusWrapper[E]) GetHistoryCreated(ctx context.Context, id string, ve E) error
- func (s StorageStatusWrapper[E]) Update(ctx context.Context, ve E) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProjectMemberService ¶ added in v0.11.0
func NewStorageStatusWrapper ¶
func NewTenantMemberService ¶ added in v0.11.2
Types ¶
type StorageStatusWrapper ¶
func (StorageStatusWrapper[E]) Create ¶
func (s StorageStatusWrapper[E]) Create(ctx context.Context, ve E) error
func (StorageStatusWrapper[E]) Delete ¶
func (s StorageStatusWrapper[E]) Delete(ctx context.Context, id string) error
func (StorageStatusWrapper[E]) DeleteAll ¶ added in v0.11.3
func (s StorageStatusWrapper[E]) DeleteAll(ctx context.Context, ids ...string) error
func (StorageStatusWrapper[E]) Get ¶
func (s StorageStatusWrapper[E]) Get(ctx context.Context, id string) (E, error)
func (StorageStatusWrapper[E]) GetHistory ¶ added in v0.7.0
func (StorageStatusWrapper[E]) GetHistoryCreated ¶ added in v0.10.0
func (s StorageStatusWrapper[E]) GetHistoryCreated(ctx context.Context, id string, ve E) error
Click to show internal directories.
Click to hide internal directories.