{"modulePath":"github.com/omalloc/tavern","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package plugin\n\n## Functions\n\n```go\nfunc Create(opt configv1.Option, log *log.Helper) (configv1.Plugin, error)\n```\n\n```go\nfunc Register(name string, f Factory)\n```\n\n## Types\n\n```go\ntype Factory func(c configv1.Option, log *log.Helper) (configv1.Plugin, error)\n```\n\n```go\ntype Registry interface {\n\t// Register registers a plugin factory with the given name.\n\tRegister(name string, factory Factory)\n\t// Create creates a plugin instance using the factory associated with the given name.\n\tCreate(opt configv1.Option, log *log.Helper) (configv1.Plugin, error)\n}\n```\n\n```go\nfunc NewRegistry() Registry\n```\n\n","path":"github.com/omalloc/tavern/plugin","name":"plugin","synopsis":"","isRedistributable":true}
