Documentation
¶
Index ¶
- func New(logger *logging.Logger, config *datastore.Config) (datastore.Factory, error)
- func NewOrganizationDAO(params *datastore.Params[*entities.Organization]) (datastore.OrganizationDAO, error)
- func NewRegistrationDAO(params *datastore.Params[*entities.Registration]) (datastore.RegistrationDAO, error)
- func NewRoleDAO(params *datastore.Params[*entities.Role]) (datastore.RoleDAO, error)
- func NewUserDAO(params *datastore.Params[*entities.User]) (datastore.UserDAO, error)
- func NewWebAuthnDAO(params *datastore.Params[*entities.Blob]) (datastore.WebAuthnDAO, error)
- type AferoDAO
- func (aferoDAO *AferoDAO[E]) Count(CONSISTENCY_LEVEL datastore.ConsistencyLevel) (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 datastore.ConsistencyLevel) (E, error)
- func (aferoDAO *AferoDAO[E]) Page(pageQuery datastore.PageQuery, CONSISTENCY_LEVEL datastore.ConsistencyLevel) (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) SerializerType() serializer.SerializerType
- func (factory *Factory) UserDAO() (datastore.UserDAO, error)
- func (factory *Factory) WebAuthnDAO() (datastore.WebAuthnDAO, error)
- type OrganizationDAO
- type RegistrationDAO
- type RoleDAO
- type UserDAO
- type WebAuthnDAO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrganizationDAO ¶
func NewOrganizationDAO(params *datastore.Params[*entities.Organization]) (datastore.OrganizationDAO, error)
func NewRegistrationDAO ¶
func NewRegistrationDAO(params *datastore.Params[*entities.Registration]) (datastore.RegistrationDAO, error)
func NewRoleDAO ¶
func NewUserDAO ¶
func NewWebAuthnDAO ¶
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 ¶
func (aferoDAO *AferoDAO[E]) Count(CONSISTENCY_LEVEL datastore.ConsistencyLevel) (int, error)
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 datastore.ConsistencyLevel) error
Reads all records in batches of PageQuery.PageSize, passing each page to the provided pageProcFunc to process the resultset.
func (*AferoDAO[E]) Get ¶
func (aferoDAO *AferoDAO[E]) Get(id uint64, CONSISTENCY_LEVEL datastore.ConsistencyLevel) (E, error)
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.
func (*AferoDAO[E]) Page ¶
func (aferoDAO *AferoDAO[E]) Page( pageQuery datastore.PageQuery, CONSISTENCY_LEVEL datastore.ConsistencyLevel) (datastore.PageResult[E], error)
Returns a page of items in the blob store partition
type Factory ¶
func (*Factory) OrganizationDAO ¶
func (factory *Factory) OrganizationDAO() (datastore.OrganizationDAO, error)
func (*Factory) RegistrationDAO ¶
func (factory *Factory) RegistrationDAO() (datastore.RegistrationDAO, error)
func (*Factory) SerializerType ¶
func (factory *Factory) SerializerType() serializer.SerializerType
func (*Factory) WebAuthnDAO ¶
func (factory *Factory) WebAuthnDAO() (datastore.WebAuthnDAO, error)
type OrganizationDAO ¶
type OrganizationDAO struct { *AferoDAO[*entities.Organization] }
func (*OrganizationDAO) GetUsers ¶
func (organizationDAO *OrganizationDAO) GetUsers(id uint64, CONSISTENCY_LEVEL datastore.ConsistencyLevel) ([]*entities.User, error)
type RegistrationDAO ¶
type RegistrationDAO struct { *AferoDAO[*entities.Registration] }
type WebAuthnDAO ¶
Click to show internal directories.
Click to hide internal directories.