Documentation ¶
Index ¶
- 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
- type Middleware
- type Option
- type PushCertificateProvider
- type PushInfo
- type PushService
- type Service
- type Store
- type Worker
- type WorkerStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePushEndpoint ¶
func MarshalPushInfo ¶
func NewPushService ¶
func NewPushService(provider PushCertificateProvider) (*push.Service, error)
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
func UnmarshalPushInfo ¶
Types ¶
type Endpoints ¶
func MakeServerEndpoints ¶
func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
type PushCertificateProvider ¶
type PushCertificateProvider interface {
PushCertificate() (*tls.Certificate, error)
}
type PushService ¶
type PushService struct {
// contains filtered or unexported fields
}
func New ¶
func New(db Store, provider PushCertificateProvider, sub pubsub.Subscriber, opts ...Option) (*PushService, error)
type Worker ¶ added in v1.3.1
type Worker struct {
// contains filtered or unexported fields
}
func NewWorker ¶ added in v1.3.1
func NewWorker(db WorkerStore, subscriber pubsub.Subscriber, logger log.Logger) *Worker
type WorkerStore ¶ added in v1.3.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.