Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsRepositoryInterface ¶
type AnalyticsRepositoryInterface interface { Insert(reqs []entities.AnalyticsHTTPRequestMetadata) error Prune(threshold time.Duration) error GetMetrics() (map[string]entities.AnalyticsMetric, error) GetMetric(key []byte) ([]byte, error) SetMetric(key, value []byte) error GetRequestMetadata(t time.Time, metrics map[string]entities.AnalyticsMetric) ([]entities.AnalyticsHTTPRequestMetadata, error) }
type CRUDInterface ¶
type CRUDInterface interface { SetEntity(entityType string, entity interface{}) (string, error) UpdateEntity(entityType, entityId string, update map[string]interface{}) (interface{}, error) DeleteEntity(entityId string) error FindByTarget(targets []string) ([]interface{}, error) FindOneByTarget(target string) (interface{}, error) FindOneBySlug(slug string) (string, interface{}, error) FindAll(namespace string) ([]interface{}, error) FindAllWithOptions( namespace string, order constants.SortOrder, pagination *entities.Pagination, ) (int, []interface{}, error) }
type ContentRepositoryInterface ¶
type ContentRepositoryInterface interface { CreateEntityStore(entityName string, entityType interface{}) error CRUDInterface EntityIdentifierInterface Types() map[string]content.Builder }
type CredentialHashRepositoryInterface ¶
type CredentialHashRepositoryInterface interface { GetByUserId(userId string, credentialType entities.CredentialType) (*entities.CredentialHash, error) SetCredential(hash *entities.CredentialHash) error }
type UserRepositoryInterface ¶
type UserRepositoryInterface interface { SetUser(usr *entities.User) error UpdateUser(usr, updatedUsr *entities.User) error DeleteUser(email string) error GetUserByEmail(email string) (*entities.User, error) // GetAllUsers users repository can and should return Users entity and not byte arrays GetAllUsers() ([][]byte, error) }
Click to show internal directories.
Click to hide internal directories.