Documentation ¶
Index ¶
- func New[E any](logger *logging.Logger, dao datastore.GenericDAO[E]) datastore.GenericDAO[E]
- func NewFactory(params *Params) (datastore.Factory, error)
- func NewOrganizationDAO(params *Params) (datastore.OrganizationDAO, error)
- func NewRegistrationDAO(params *Params) (datastore.RegistrationDAO, error)
- func NewRoleDAO(params *Params) (datastore.RoleDAO, error)
- func NewUserDAO(params *Params) (datastore.UserDAO, error)
- func NewWebAuthnDAO(params *Params) (datastore.WebAuthnDAO, error)
- type AferoDAO
- func (aferoDAO *AferoDAO[E]) Count(CONSISTENCY_LEVEL int) (int, error)
- func (aferoDAO *AferoDAO[E]) Delete(entity E) error
- func (aferoDAO *AferoDAO[E]) ForEachPage(pageQuery datastore.PageQuery, pagerProcFunc datastore.PagerProcFunc[E], ...) error
- func (aferoDAO *AferoDAO[E]) Get(id uint64, CONSISTENCY_LEVEL int) (E, error)
- func (aferoDAO *AferoDAO[E]) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[E], error)
- func (aferoDAO *AferoDAO[E]) Save(entity E) error
- type Factory
- func (factory *Factory) OrganizationDAO() (datastore.OrganizationDAO, error)
- func (factory *Factory) RegistrationDAO() (datastore.RegistrationDAO, error)
- func (factory *Factory) RoleDAO() (datastore.RoleDAO, error)
- func (factory *Factory) UserDAO() (datastore.UserDAO, error)
- func (factory *Factory) WebAuthnDAO() (datastore.WebAuthnDAO, error)
- type KVStore
- func (kvstore *KVStore[E]) Count(CONSISTENCY_LEVEL int) (int, error)
- func (kvstore *KVStore[E]) Delete(entity E) error
- func (kvstore *KVStore[E]) ForEachPage(pageQuery datastore.PageQuery, pagerProcFunc datastore.PagerProcFunc[E], ...) error
- func (kvstore *KVStore[E]) Get(id uint64, CONSISTENCY_LEVEL int) (E, error)
- func (kvstore *KVStore[E]) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[E], error)
- func (kvstore *KVStore[E]) Save(entity E) error
- type OrganizationDAO
- func (organizationDAO *OrganizationDAO) Count(CONSISTENCY_LEVEL int) (int, error)
- func (organizationDAO *OrganizationDAO) Delete(entity *entities.Organization) error
- func (organizationDAO *OrganizationDAO) ForEachPage(pageQuery datastore.PageQuery, ...) error
- func (organizationDAO *OrganizationDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.Organization, error)
- func (organizationDAO *OrganizationDAO) GetUsers(id uint64, CONSISTENCY_LEVEL int) ([]*entities.User, error)
- func (organizationDAO *OrganizationDAO) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.Organization], error)
- func (organizationDAO *OrganizationDAO) Save(entity *entities.Organization) error
- type Params
- type RegistrationDAO
- func (registrationDAO *RegistrationDAO) Count(CONSISTENCY_LEVEL int) (int, error)
- func (registrationDAO *RegistrationDAO) Delete(entity *entities.Registration) error
- func (registrationDAO *RegistrationDAO) ForEachPage(pageQuery datastore.PageQuery, ...) error
- func (registrationDAO *RegistrationDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.Registration, error)
- func (registrationDAO *RegistrationDAO) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.Registration], error)
- func (registrationDAO *RegistrationDAO) Save(entity *entities.Registration) error
- type RoleDAO
- func (roleDAO *RoleDAO) Count(CONSISTENCY_LEVEL int) (int, error)
- func (roleDAO *RoleDAO) Delete(entity *entities.Role) error
- func (roleDAO *RoleDAO) ForEachPage(pageQuery datastore.PageQuery, ...) error
- func (roleDAO *RoleDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.Role, error)
- func (roleDAO *RoleDAO) GetByName(name string, CONSISTENCY_LEVEL int) (*entities.Role, error)
- func (roleDAO *RoleDAO) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.Role], error)
- func (roleDAO *RoleDAO) Save(entity *entities.Role) error
- type UserDAO
- func (userDAO *UserDAO) Count(CONSISTENCY_LEVEL int) (int, error)
- func (userDAO *UserDAO) Delete(entity *entities.User) error
- func (userDAO *UserDAO) ForEachPage(pageQuery datastore.PageQuery, ...) error
- func (userDAO *UserDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.User, error)
- func (userDAO *UserDAO) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.User], error)
- func (userDAO *UserDAO) Save(entity *entities.User) error
- type WebAuthnDAO
- func (webauthnDAO *WebAuthnDAO) Count(CONSISTENCY_LEVEL int) (int, error)
- func (webauthnDAO *WebAuthnDAO) Delete(entity *entities.Blob) error
- func (webauthnDAO *WebAuthnDAO) ForEachPage(pageQuery datastore.PageQuery, ...) error
- func (webauthnDAO *WebAuthnDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.Blob, error)
- func (webauthnDAO *WebAuthnDAO) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.Blob], error)
- func (webauthnDAO *WebAuthnDAO) Save(entity *entities.Blob) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[E any]( logger *logging.Logger, dao datastore.GenericDAO[E]) datastore.GenericDAO[E]
func NewOrganizationDAO ¶
func NewOrganizationDAO(params *Params) (datastore.OrganizationDAO, error)
func NewRegistrationDAO ¶
func NewRegistrationDAO(params *Params) (datastore.RegistrationDAO, error)
func NewWebAuthnDAO ¶
func NewWebAuthnDAO(params *Params) (datastore.WebAuthnDAO, error)
Types ¶
type AferoDAO ¶
type AferoDAO[E any] struct { datastore.GenericDAO[E] // contains filtered or unexported fields }
func NewAferoDAO ¶
Creates a key/value blob storage backend
func (*AferoDAO[E]) Count ¶
Returns the number of items in the blob store partition using a buffered read
func (*AferoDAO[E]) Delete ¶
Deletes the provided entity from the blob datastore. Returns an error if the provided entity can't be found.
func (*AferoDAO[E]) ForEachPage ¶
func (aferoDAO *AferoDAO[E]) ForEachPage( pageQuery datastore.PageQuery, pagerProcFunc datastore.PagerProcFunc[E], CONSISTENCY_LEVEL int) error
Reads all records in batches of PageQuery.PageSize, passing each page to the provided pageProcFunc to process the resultset.
func (*AferoDAO[E]) Get ¶
Retrieves the entity with the provided ID from the blob datastore. Returns an error if the entity can't be found or if it can't be unmarshalled.
type Factory ¶
func (*Factory) OrganizationDAO ¶
func (factory *Factory) OrganizationDAO() (datastore.OrganizationDAO, error)
func (*Factory) RegistrationDAO ¶
func (factory *Factory) RegistrationDAO() (datastore.RegistrationDAO, error)
func (*Factory) WebAuthnDAO ¶
func (factory *Factory) WebAuthnDAO() (datastore.WebAuthnDAO, error)
type KVStore ¶
type KVStore[E any] struct { datastore.GenericDAO[E] // contains filtered or unexported fields }
func (*KVStore[E]) ForEachPage ¶
type OrganizationDAO ¶
type OrganizationDAO struct { *AferoDAO[*entities.Organization] }
func (*OrganizationDAO) Count ¶
func (organizationDAO *OrganizationDAO) Count(CONSISTENCY_LEVEL int) (int, error)
func (*OrganizationDAO) Delete ¶
func (organizationDAO *OrganizationDAO) Delete(entity *entities.Organization) error
func (*OrganizationDAO) ForEachPage ¶
func (organizationDAO *OrganizationDAO) ForEachPage( pageQuery datastore.PageQuery, pagerProcFunc datastore.PagerProcFunc[*entities.Organization], CONSISTENCY_LEVEL int) error
func (*OrganizationDAO) Get ¶
func (organizationDAO *OrganizationDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.Organization, error)
func (*OrganizationDAO) Page ¶
func (organizationDAO *OrganizationDAO) Page( pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.Organization], error)
func (*OrganizationDAO) Save ¶
func (organizationDAO *OrganizationDAO) Save(entity *entities.Organization) error
type RegistrationDAO ¶
type RegistrationDAO struct { *AferoDAO[*entities.Registration] }
func (*RegistrationDAO) Count ¶
func (registrationDAO *RegistrationDAO) Count(CONSISTENCY_LEVEL int) (int, error)
func (*RegistrationDAO) Delete ¶
func (registrationDAO *RegistrationDAO) Delete(entity *entities.Registration) error
func (*RegistrationDAO) ForEachPage ¶
func (registrationDAO *RegistrationDAO) ForEachPage( pageQuery datastore.PageQuery, pagerProcFunc datastore.PagerProcFunc[*entities.Registration], CONSISTENCY_LEVEL int) error
func (*RegistrationDAO) Get ¶
func (registrationDAO *RegistrationDAO) Get(id uint64, CONSISTENCY_LEVEL int) (*entities.Registration, error)
func (*RegistrationDAO) Page ¶
func (registrationDAO *RegistrationDAO) Page( pageQuery datastore.PageQuery, CONSISTENCY_LEVEL int) (datastore.PageResult[*entities.Registration], error)
func (*RegistrationDAO) Save ¶
func (registrationDAO *RegistrationDAO) Save(entity *entities.Registration) error
type RoleDAO ¶
func (*RoleDAO) ForEachPage ¶
type WebAuthnDAO ¶
func (*WebAuthnDAO) Count ¶
func (webauthnDAO *WebAuthnDAO) Count(CONSISTENCY_LEVEL int) (int, error)
func (*WebAuthnDAO) ForEachPage ¶
func (webauthnDAO *WebAuthnDAO) ForEachPage( pageQuery datastore.PageQuery, pagerProcFunc datastore.PagerProcFunc[*entities.Blob], CONSISTENCY_LEVEL int) error
Click to show internal directories.
Click to hide internal directories.