mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-26 04:59:57 +08:00
Export types and fields necessary to build configs (for config adapters)
Also flag most fields with 'omitempty' for JSON marshaling
This commit is contained in:
4
caddy.go
4
caddy.go
@ -136,10 +136,10 @@ type App interface {
|
||||
|
||||
// Config represents a Caddy configuration.
|
||||
type Config struct {
|
||||
StorageRaw json.RawMessage `json:"storage"`
|
||||
StorageRaw json.RawMessage `json:"storage,omitempty"`
|
||||
storage certmagic.Storage
|
||||
|
||||
AppsRaw map[string]json.RawMessage `json:"apps"`
|
||||
AppsRaw map[string]json.RawMessage `json:"apps,omitempty"`
|
||||
|
||||
// apps stores the decoded Apps values,
|
||||
// keyed by module name.
|
||||
|
Reference in New Issue
Block a user