service

package
Version: v0.0.0-...-b79fb73 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidPayloadErr

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

func NewInvalidPayloadError

func NewInvalidPayloadError(msg string) *InvalidPayloadErr

func (*InvalidPayloadErr) Error

func (e *InvalidPayloadErr) Error() string

type Service

type Service interface {
	SendMessage(message dto.Message) (dto.Id, error)
	CheckStatusOfMessage(id uint32) (dto.MessageStatus, error)
	CheckStatusOfRecipient(id uint32, phone string) (dto.MessageStatus, error)
}

func NewService

func NewService(sender sms.Sender, messageDao dao.MessageDao, recipientDao dao.RecipientDao, statusStoreDays, messageMaxLen int, webhook, phoneMask string) Service

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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