sender

package
v0.0.1-20230523-0001 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConstructorDBConnect = define.Err(101, "failed to connect to the db")
View Source
var ErrConstructorNameEmpty = define.Err(100, "name is empty")

Functions

This section is empty.

Types

type Sender

type Sender struct {
	FcmSenderId  string
	FcmServerKey string
	Name         string // The name should be unique, because based on this, it will use specific DB Table Name!
	// contains filtered or unexported fields
}

func New

func New(sender *Sender) (*Sender, error)

func (*Sender) AddToQueue

func (s *Sender) AddToQueue()

This is for the client!

func (*Sender) RemoveFromQueue

func (s *Sender) RemoveFromQueue()

func (*Sender) Start

func (s *Sender) Start()

func (*Sender) Stop

func (s *Sender) Stop()

Jump to

Keyboard shortcuts

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