Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubNub ¶
type PubNub struct { PubNubPublishKey string `required:"true"` PubNubSubscribeKey string `required:"true"` PubNubChannels []string `required:"true"` PubNubNatsMap map[string]string `required:"true"` Config pubnub.Config Listeners []*pubnub.Listener PubNubServer *pubnub.PubNub NatsConn *nats.Conn }
PubNub represents the configuration of how the app connects to PubNub and which channels and listeners are associated with it.
func (*PubNub) Start ¶
Start is the function that takes care of starting the agent and makes sure a file is creating to perform healthchecks in case the agent runs in a Docker container. By returning a boolean channel, it will make sure to create an infinite loop that can be ended grafecully by calling the stop method.
Click to show internal directories.
Click to hide internal directories.