diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-11 11:37:56 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-11 11:37:56 -0800 |
commit | ac82561825ab76f2b5db5c4086541e590fcb70cb (patch) | |
tree | a90bc1a4d8f26006916e48d346e4fd384859e1f4 /system/addon/addon.go | |
parent | bc35db8c462646b8e0ed3bbc94ceca51808a7787 (diff) |
extending the "addon" platform within ponzu to register, present and manage addons
Diffstat (limited to 'system/addon/addon.go')
-rw-r--r-- | system/addon/addon.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/addon/addon.go b/system/addon/addon.go index 22e2114..a423d07 100644 --- a/system/addon/addon.go +++ b/system/addon/addon.go @@ -38,9 +38,9 @@ type Addon struct { Meta } -// New constructs a new addon to be registered. Meta is a addon.Meta and fn is a -// closure returning a pointer to your own addon type -func New(m Meta, fn func() interface{}) Addon { +// Register constructs a new addon and registers it with the system. Meta is a +// addon.Meta and fn is a closure returning a pointer to your own addon type +func Register(m Meta, fn func() interface{}) Addon { // get or create the reverse DNS identifier if m.PonzuAddonReverseDNS == "" { revDNS, err := reverseDNS(m) |