openrport-openrport/plus/config.go
2023-09-27 15:43:23 +02:00

20 lines
640 B
Go

package rportplus
import (
"github.com/openrport/openrport/plus/capabilities/oauth"
"github.com/openrport/openrport/plus/license"
)
// PluginConfig contains the config related to the plugin itself
type PluginConfig struct {
PluginPath string `mapstructure:"plugin_path"`
}
// PlusConfig contains the overall config for the rport-plus plugin. note that
// each capability should have it's own config section in the config file.
type PlusConfig struct {
PluginConfig *PluginConfig `mapstructure:"plus-plugin"`
OAuthConfig *oauth.Config `mapstructure:"plus-oauth"`
LicenseConfig *license.Config `mapstructure:"plus-license"`
}