Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Spawn ¶
func Spawn(actDesc *Descriptor, wg *sync.WaitGroup, f func())
Spawn starts function `f` as a goroutine making it a member of the `wg` wait group.
Types ¶
type Descriptor ¶ added in v0.14.0
type Descriptor struct {
// contains filtered or unexported fields
}
Descriptor
func Root ¶ added in v0.14.0
func Root() *Descriptor
Root returns the root actor descriptor that all other descriptors are either direct or indirect descendants of.
func (*Descriptor) AddLogField ¶ added in v0.14.0
func (d *Descriptor) AddLogField(key string, value interface{})
AddLogField adds a field to the associated structured log entry. Note that this method is not synchronized therefor all AddLogCalls must be performed from the same goroutine that created the descriptor and before the descriptor is passed to child goroutines.
func (*Descriptor) Log ¶ added in v0.14.0
func (d *Descriptor) Log() *log.Entry
Log returns logger with associated fields. Fields are inherited from the parent logger.
func (*Descriptor) NewChild ¶ added in v0.14.0
func (d *Descriptor) NewChild(nameParts ...interface{}) *Descriptor
NewChild creates a child descriptor.
func (*Descriptor) String ¶ added in v0.14.0
func (d *Descriptor) String() string
Click to show internal directories.
Click to hide internal directories.