Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultProviders ¶
func DefaultProviders(worker *Worker)
DefaultProviders : will provide all the default provider in the server start
Types ¶
type Worker ¶
type Worker struct { Name string `json:"name"` // contains filtered or unexported fields }
func (*Worker) AddProvider ¶
func (worker *Worker) AddProvider(constructor interface{}, opts ...dig.ProvideOption)
AddProvider : This will add new provider to the server container
func (*Worker) Invoker ¶
func (worker *Worker) Invoker(function interface{}, opts ...dig.ProvideOption)
Invoker : This will add new provider to the server container
Click to show internal directories.
Click to hide internal directories.