mainager

package module
v0.0.0-...-dc228d2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2017 License: MIT Imports: 1 Imported by: 0

README

mainager

👌 dependency toolkit

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(module Module)

Types

type Hook

type Hook func(ctx context.Context, params ...interface{}) (context.Context, error)

type Hooks

type Hooks map[string]Hook

type Key

type Key string

type Mainager

type Mainager struct {
	// contains filtered or unexported fields
}

func Instance

func Instance() *Mainager

func New

func New() *Mainager

func (*Mainager) InvokeAll

func (m *Mainager) InvokeAll(ctx context.Context, hookName string, params ...interface{}) (context.Context, error)

func (*Mainager) Register

func (m *Mainager) Register(module Module)

type Module

type Module struct {
	Name         string
	Hooks        Hooks
	Dependencies []string
}

type Modules

type Modules map[string]Module

Directories

Path Synopsis
examples
module
scenario

Jump to

Keyboard shortcuts

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