service

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProjectMemberService added in v0.11.0

func NewProjectMemberService(db *sqlx.DB, l *slog.Logger) (*projectMemberService, error)

func NewProjectService

func NewProjectService(db *sqlx.DB, l *slog.Logger) (*projectService, error)

func NewStorageStatusWrapper

func NewStorageStatusWrapper[E datastore.Entity](s datastore.Storage[E]) datastore.Storage[E]

func NewTenantMemberService added in v0.11.2

func NewTenantMemberService(db *sqlx.DB, l *slog.Logger) (*tenantMemberService, error)

func NewTenantService

func NewTenantService(db *sqlx.DB, l *slog.Logger) (*tenantService, error)

Types

type StorageStatusWrapper

type StorageStatusWrapper[E datastore.Entity] struct {
	// contains filtered or unexported fields
}

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]) Find

func (s StorageStatusWrapper[E]) Find(ctx context.Context, filter map[string]any, paging *v1.Paging) ([]E, *uint64, 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 (s StorageStatusWrapper[E]) GetHistory(ctx context.Context, id string, at time.Time, ve E) error

func (StorageStatusWrapper[E]) GetHistoryCreated added in v0.10.0

func (s StorageStatusWrapper[E]) GetHistoryCreated(ctx context.Context, id string, ve E) error

func (StorageStatusWrapper[E]) Update

func (s StorageStatusWrapper[E]) Update(ctx context.Context, ve E) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL