Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface { // FindExtensions finds all available extensions and returns their IDs. FindExtensions() ([]string, error) // ReadExtension loads and returns the extension content as a string. ReadExtension(id string) (string, error) }
Registry allows listing and loading extension files.
func NewRegistry ¶
NewRegistry creates a new extension registry. The argument can be an HTTP(S) URL or the path of a local directory. This returns a matching registry implementation depending on the argument.
Click to show internal directories.
Click to hide internal directories.