kubo/config/pubsub.go
jwh 9eaf572b28 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
2021-10-27 21:50:10 +02:00

15 lines
346 B
Go

package config
type PubsubConfig struct {
// Router can be either floodsub (legacy) or gossipsub (new and
// backwards compatible).
Router string
// DisableSigning disables message signing. Message signing is *enabled*
// by default.
DisableSigning bool
// Enable pubsub (--enable-pubsub-experiment)
Enabled Flag `json:",omitempty"`
}