worker

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 6 Imported by: 0

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 Message

type Message struct {
}

type Worker

type Worker struct {
	Name string `json:"name"`
	// contains filtered or unexported fields
}

func New

func New(name string) *Worker

New : This will create new Worker object

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL