go-ipfs-config: feat: pubsub and ipns pubsub flags (#145)
* enable pubsub and namesys pubsub to be enable via config * rename Ipns key, switch type to Flag * omit the fields if empty
jwh committed
Oct 27, 2021 at 21:50 UTC
9eaf572b284cdc6408c6186b664d306c5f2ebebf
2 files changed
+6
config/ipns.go
+3
@@ -5,4 +5,7 @@ type Ipns struct {
5
RecordLifetime string
6
7
ResolveCacheSize int
8
+
9
+ // Enable namesys pubsub (--enable-namesys-pubsub)
10
+ UsePubsub Flag `json:",omitempty"`
11
}
config/pubsub.go
+3
@@ -8,4 +8,7 @@ type PubsubConfig struct {
8
// DisableSigning disables message signing. Message signing is *enabled*
9
// by default.
10
DisableSigning bool
11
+
12
+ // Enable pubsub (--enable-pubsub-experiment)
13
+ Enabled Flag `json:",omitempty"`
14
}