Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NatsAddr string Token string Logger *logrus.Logger Client *rest.Client ServiceName string }
Config contains the configuration options for the Receiver
type EventHandler ¶
type EventHandler interface{}
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver is a client to interface with the Chator NATS Discord interface
func (*Receiver) On ¶
func (r *Receiver) On(sub string, handler EventHandler)
On registers an event listener
Click to show internal directories.
Click to hide internal directories.