{"modulePath":"github.com/mysteriumnetwork/node","version":"v0.0.0-20261105113022-e486d47ee534","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package actionstack\n\n## Variables\n\n```go\nvar (\n\t// ErrAlreadyRun error is throwed with panic on Push or Run invocation\n\t// after Run was invoked at least once\n\tErrAlreadyRun = errors.New(\"actions already fired\")\n)\n```\n\n## Types\n\n```go\ntype Action func()\n```\nAction represents stackable action.\n\n```go\ntype ActionStack struct {\n\t// contains filtered or unexported fields\n}\n```\nActionStack is a stack of actions which are executed in reverse order they were added\n\n```go\nfunc NewActionStack() *ActionStack\n```\nNewActionStack creates empty ActionStack\n\n```go\nfunc (a *ActionStack) Push(elems ...Action)\n```\nPush adds new action on top of stack. Last added action will be executed by Run() first.\n\n```go\nfunc (a *ActionStack) Run()\n```\nRun executes pushed actions in reverse order (FILO)\n\n","path":"github.com/mysteriumnetwork/node/utils/actionstack","name":"actionstack","synopsis":"","isRedistributable":true}
