From bc00d840e845d42145954839b88f1e836cd51bfd Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 22 May 2019 12:32:36 -0600 Subject: Export types and fields necessary to build configs (for config adapters) Also flag most fields with 'omitempty' for JSON marshaling --- caddy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'caddy.go') diff --git a/caddy.go b/caddy.go index c654fbe..d010f63 100644 --- a/caddy.go +++ b/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. -- cgit v1.2.3