version1

package
v1.0.0-1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISmsClientV1

type ISmsClientV1 interface {
	SendMessage(ctx context.Context, correlationId string, message *SmsMessageV1, parameters *config.ConfigParams) error

	SendMessageToRecipient(ctx context.Context, correlationId string, recipient *SmsRecipientV1,
		message *SmsMessageV1, parameters *config.ConfigParams) error

	SendMessageToRecipients(ctx context.Context, correlationId string, recipients []*SmsRecipientV1,
		message *SmsMessageV1, parameters *config.ConfigParams) error
}

type SmsCommandableHttpClientV1

type SmsCommandableHttpClientV1 struct {
	*clients.CommandableHttpClient
	// contains filtered or unexported fields
}

func NewSmsCommandableHttpClientV1

func NewSmsCommandableHttpClientV1() *SmsCommandableHttpClientV1

func NewSmsCommandableHttpClientV1WithParameters

func NewSmsCommandableHttpClientV1WithParameters(config any) *SmsCommandableHttpClientV1

func (*SmsCommandableHttpClientV1) SendMessage

func (c *SmsCommandableHttpClientV1) SendMessage(ctx context.Context, correlationId string, message *SmsMessageV1, parameters *cconf.ConfigParams) error

func (*SmsCommandableHttpClientV1) SendMessageToRecipient

func (c *SmsCommandableHttpClientV1) SendMessageToRecipient(ctx context.Context, correlationId string, recipient *SmsRecipientV1, message *SmsMessageV1, parameters *cconf.ConfigParams) error

func (*SmsCommandableHttpClientV1) SendMessageToRecipients

func (c *SmsCommandableHttpClientV1) SendMessageToRecipients(ctx context.Context, correlationId string, recipients []*SmsRecipientV1, message *SmsMessageV1, parameters *cconf.ConfigParams) error

type SmsMessageV1

type SmsMessageV1 struct {
	From string `json:"from"`
	To   string `json:"to"`
	Text string `json:"text"`
}

type SmsNullClientV1

type SmsNullClientV1 struct {
}

func NewSmsNullClientV1

func NewSmsNullClientV1() *SmsNullClientV1

func (*SmsNullClientV1) SendMessage

func (c *SmsNullClientV1) SendMessage(ctx context.Context, correlationId string, message *SmsMessageV1, parameters *config.ConfigParams) error

func (*SmsNullClientV1) SendMessageToRecipient

func (c *SmsNullClientV1) SendMessageToRecipient(ctx context.Context, correlationId string, recipient *SmsRecipientV1, message *SmsMessageV1, parameters *config.ConfigParams) error

func (*SmsNullClientV1) SendMessageToRecipients

func (c *SmsNullClientV1) SendMessageToRecipients(ctx context.Context, correlationId string, recipients []*SmsRecipientV1, message *SmsMessageV1, parameters *config.ConfigParams) error

type SmsRecipientV1

type SmsRecipientV1 struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	Phone    string `json:"phone"`
	Language string `json:"language"`
}

Jump to

Keyboard shortcuts

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