actor

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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