Crate hextacy

Source

Modules§

cache
Utility traits for connecting to the cache. Currently supports only redis.
clients
Clients for connecting to the database, cache and email.
crypto
Cryptographic utilities
db
Traits and macros for implementing clients and connections.
derive
Derive macros for quick implementations of generic repository traits.
env
Utilities for getting and setting stuff from the env.
logger
A logger that can be set up to use stdout or a file.
time
Utilities for time related stuff.
web
Utilities for web related stuff. Contains a WS and broker implementation as well as some HTTP helpers.

Macros§

acid_repo
Generates a Repository struct (or a custom name) with pub(super) visibility and derives [AcidRepositoryAccess] super::AcidRepositoryAccess. Useful for reducing overall boilerplate in repository adapters.
atomic
Macro intended as an ergonomic shortcut to get the underlying connection of AtomicConnection enums and perform database operations on it.
contract
Used to implement a contract for any adapter used by business level services and reducing boilerplate associated with adapter generics.
repository
Generates a Repository struct (or a custom name) with pub(super) visibility and derives [RepositoryAccess] super::RepositoryAccess with either a postgres or mongo connection or both.
transaction
Takes in self and the closure and wraps it in a transaction. The code block must return a Result<T, E>. The service that gets passed in the self parameter MUST have a repository field that implements Atomic and AcidRepositoryAccess.
ws_register
Register a domain on the session actor.