di/di

    Dark Mode
Search:
Group by:
  Source   Edit

Types

BindingNotFoundError = object of CatchableError
  Source   Edit
Container = ref object
  bindings*: Table[BindingKey, proc (): RootRef {....gcsafe, raises: [].}]
  Source   Edit

Procs

proc register[T](c: Container; implementation: proc (): T {....gcsafe, raises: [].};
                 qualifier: string = "")
  Source   Edit
proc resolve[T](c: Container; qualifier: string = ""): T {.
    ...raises: [BindingNotFoundError].}
  Source   Edit