mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-03 17:29:22 -05:00
30 lines
692 B
Go
30 lines
692 B
Go
package config
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/owncloud/ocis/v2/ocis-pkg/shared"
|
|
)
|
|
|
|
// Config combines all available configuration parts.
|
|
type Config struct {
|
|
Commons *shared.Commons `yaml:"-"` // don't use this directly as configuration for a service
|
|
|
|
Service Service `yaml:"-"`
|
|
|
|
Log *Log `yaml:"log"`
|
|
Debug Debug `yaml:"debug"`
|
|
|
|
Nats Nats `ociConfig:"nats"`
|
|
|
|
Context context.Context `yaml:"-"`
|
|
}
|
|
|
|
// Nats is the nats config
|
|
type Nats struct {
|
|
Host string `yaml:"host" env:"NATS_NATS_HOST"`
|
|
Port int `yaml:"port" env:"NATS_NATS_PORT"`
|
|
ClusterID string `yaml:"clusterid" env:"NATS_NATS_CLUSTER_ID"`
|
|
StoreDir string `yaml:"store_dir" env:"NATS_NATS_STORE_DIR"`
|
|
}
|