Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 Changes in this version + type Worker struct + func NewWorker(db WorkerStore, subscriber pubsub.Subscriber, logger log.Logger) *Worker + func (w *Worker) Run(ctx context.Context) error + type WorkerStore interface + Save func(*PushInfo) error v1.3.0 Jun 10, 2018 Changes in this version + func MakePushEndpoint(svc Service) endpoint.Endpoint + func MarshalPushInfo(p *PushInfo) ([]byte, error) + func NewPushService(provider PushCertificateProvider) (*push.Service, error) + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + func UnmarshalPushInfo(data []byte, p *PushInfo) error + type Endpoints struct + PushEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + type Middleware func(Service) Service + func LoggingMiddleware(logger log.Logger) Middleware + type Option func(*PushService) + func WithPushService(svc *push.Service) Option + type PushCertificateProvider interface + PushCertificate func() (*tls.Certificate, error) + type PushInfo struct + MDMTopic string + PushMagic string + Token string + UDID string + type PushService struct + func New(db Store, provider PushCertificateProvider, sub pubsub.Subscriber, ...) (*PushService, error) + func (svc *PushService) Push(ctx context.Context, deviceUDID string) (string, error) + type Service interface + Push func(ctx context.Context, udid string) (string, error) + type Store interface + PushInfo func(udid string) (*PushInfo, error)