gcm

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRequestType = errors.New("invalid gcm request type")

Functions

This section is empty.

Types

type Config

type Config struct {
	*worker.Config `mapstructure:"-"`

	// Server key:
	// https://console.firebase.google.com/project/_/settings/cloudmessaging/
	ServerKey string        `mapstructure:"key"`
	Retries   int           `mapstructure:"retries"`
	Timeout   time.Duration `mapstructure:"timeout"`
}

func NewConfig

func NewConfig(src *viper.Viper) (*Config, error)

type Worker

type Worker struct {
	*worker.Worker
	// contains filtered or unexported fields
}

func New

func New(cfg *Config, logger *zap.Logger, svcMetric *metric.Service) (*Worker, error)

func (*Worker) SupportsVoIP

func (w *Worker) SupportsVoIP() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL