Crate dog_core

Crate dog_core 

Source
Expand description

Library template created with FerrisUp dog-core: framework-agnostic core for DogRS.

Re-exports§

pub use app::DogApp;
pub use app::ServiceCaller;
pub use config::DogConfig;
pub use config::DogConfigSnapshot;
pub use hooks::DogAfterHook;
pub use hooks::DogAroundHook;
pub use hooks::DogBeforeHook;
pub use hooks::DogErrorHook;
pub use hooks::HookContext;
pub use hooks::Next;
pub use hooks::ServiceHooks;
pub use hooks::HookResult;
pub use registry::DogServiceRegistry;
pub use service::DogService;
pub use service::ServiceCapabilities;
pub use service::ServiceMethodKind;
pub use tenant::TenantContext;
pub use tenant::TenantId;
pub use events::DogEventHub;
pub use events::ServiceEventKind;
pub use events::ServiceEventData;
pub use events::method_to_standard_event;
pub use errors::DogError;
pub use errors::ErrorKind;
pub use errors::DogResult;
pub use schema::HookMeta;
pub use schema::ResolveData;
pub use schema::Rules;
pub use schema::SchemaHooksExt;
pub use schema::ValidateData;
pub use schema::WriteMethods;

Modules§

app
config
DogRS Configuration
errors
Errors (Feathers-style)
events
hooks
Hooks: Dependency Injection (DogRS style)
registry
schema
Schema hooks (DogRS-native)
service
tenant
Core multi-tenant types for DogRS.

Macros§

bail_dog
Convenience helper for “bail with DogError”.
custom_methods
Macro to generate custom methods in the DogService trait Usage: custom_methods!(“read”, “write”, “analyze”) Applications should use this macro to define their own custom methods