register

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePid

func ChangePid(name string, supplier func() *quacktors.Pid)

ChangePid expects a *quacktors.Pid from a supplier function so it can safely change the pid-mapping from one *quacktors.Pid to another.

func DeletePid

func DeletePid(name string)

DeletePid deletes the association from a *quacktors.Pid to a name.

func ModifyUnsafe

func ModifyUnsafe(action func(register *map[string]*quacktors.Pid, mu *sync.RWMutex))

ModifyUnsafe passes both the actual pid-register as well as the pid-register-mutex to a callback function so they can be modified directly. This should be used with caution!

func SetPid

func SetPid(name string, pid *quacktors.Pid)

SetPid associates a *quacktors.Pid with a name.

func UsePid

func UsePid(name string, action func(pid *quacktors.Pid))

UsePid passes the *quacktors.Pid associated with a name to a callback function so it can be used safely.

Types

This section is empty.

Jump to

Keyboard shortcuts

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