func NewMemProvider ¶
func NewMemProvider(config *topicsTypes.MemConfig) (topicsTypes.Provider, error)
NewMemProvider returns an new instance of the provider, which is implements the TopicsProvider interface. provider is a hidden struct that stores the topic subscriptions and retained messages in memory. The content is not persistent so when the server goes, everything will be gone. Use with care.