ans

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Config

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

	// Path to tls file in pem format
	PemFile string        `mapstructure:"pem"`
	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