Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilConfig = errors.New("pusher config is nil")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
AppID string `env:"APP_ID" json:"appID"`
Key string `env:"KEY" json:"key"`
Secret string `env:"SECRET" json:"secret"`
Cluster string `env:"CLUSTER" json:"cluster"`
Secure bool `env:"SECURE" json:"secure"`
}
Config holds Pusher async notifier configuration.
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier is a Pusher-backed AsyncNotifier.
func NewNotifier ¶
func NewNotifier(cfg *Config, logger logging.Logger, tracerProvider tracing.TracerProvider, metricsProvider metrics.Provider) (*Notifier, error)
NewNotifier creates a new Pusher-backed AsyncNotifier.
Click to show internal directories.
Click to hide internal directories.