Documentation ¶
Index ¶
- func NewDB(dbType, connect string) (*gorm.DB, error)
- type OrganizationStore
- func (o *OrganizationStore) Count(ctx context.Context, filter ...domain.OrganizationFilter) (int, error)
- func (o *OrganizationStore) Delete(ctx context.Context, id domain.OrganizationID) error
- func (o *OrganizationStore) Filter(ctx context.Context, filter ...domain.OrganizationFilter) ([]domain.Organization, error)
- func (o *OrganizationStore) Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error)
- func (o *OrganizationStore) Put(ctx context.Context, org domain.Organization) error
- func (o *OrganizationStore) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OrganizationStore ¶
type OrganizationStore struct {
// contains filtered or unexported fields
}
func NewOrganizationStore ¶
func NewOrganizationStore(db *gorm.DB) (*OrganizationStore, error)
func (*OrganizationStore) Count ¶
func (o *OrganizationStore) Count(ctx context.Context, filter ...domain.OrganizationFilter) (int, error)
func (*OrganizationStore) Delete ¶
func (o *OrganizationStore) Delete(ctx context.Context, id domain.OrganizationID) error
func (*OrganizationStore) Filter ¶
func (o *OrganizationStore) Filter(ctx context.Context, filter ...domain.OrganizationFilter) ([]domain.Organization, error)
func (*OrganizationStore) Get ¶
func (o *OrganizationStore) Get(ctx context.Context, id domain.OrganizationID) (domain.Organization, error)
func (*OrganizationStore) Put ¶
func (o *OrganizationStore) Put(ctx context.Context, org domain.Organization) error
Click to show internal directories.
Click to hide internal directories.