server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server ...

func NewServer

func NewServer(addr string, qf queue.QueueFactory) (s *Server)

NewServer ...

func (*Server) AddService

func (s *Server) AddService(pp services.PushService, workers int, squash services.SquashConfig) (err error)

AddService ...

func (*Server) CountPush

func (s *Server) CountPush(serviceID string, success bool, duration time.Duration)

CountPush ...

func (*Server) ReplaceToken

func (s *Server) ReplaceToken(serviceID, token, replacement string)

ReplaceToken ...

func (*Server) Serve

func (s *Server) Serve() (err error)

Serve ...

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) (err error)

Shutdown ...

func (*Server) TokenInvalid

func (s *Server) TokenInvalid(serviceID, token string)

TokenInvalid ...

Jump to

Keyboard shortcuts

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