service

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailApiService

func NewEmailApiService(c *config.Config) server.EmailAPIServicer

NewEmailApiService creates a default api service

func NewHealthApiService

func NewHealthApiService(c *config.Config) server.HealthAPIServicer

NewHealthApiService creates a default api service

func NewNotificationApiService

func NewNotificationApiService(c *config.Config) server.NotificationAPIServicer

NewNotificationApiService creates a default api service

func NewSmsApiService added in v0.0.11

func NewSmsApiService(c *config.Config) server.SmsAPIServicer

NewSmsApiService creates a default api service

Types

type EmailApiService

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

EmailApiService is a service that implents the logic for the EmailApiServicer This service should implement the business logic for every endpoint for the EmailApi API. Include any external packages or services that will be required by this service.

func (*EmailApiService) SendBulk

func (s *EmailApiService) SendBulk(ctx context.Context, sendBulkMailRequest server.SendBulkMailRequest) (server.ImplResponse, error)

SendBulk - Send a batch of emails to many users with the same content. Note that it is possible for only a subset of these to fail.

func (*EmailApiService) SendEmail

func (s *EmailApiService) SendEmail(ctx context.Context, sendMailRequest server.SendMailRequest) (server.ImplResponse, error)

SendEmail - Send an email

type HealthApiService

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

HealthApiService is a service that implents the logic for the HealthApiServicer This service should implement the business logic for every endpoint for the HealthApi API. Include any external packages or services that will be required by this service.

func (*HealthApiService) ReadyCheck

func (s *HealthApiService) ReadyCheck(ctx context.Context) (server.ImplResponse, error)

ReadyCheck - Readiness check - the service is ready to handle work

type NotificationApiService

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

NotificationApiService is a service that implents the logic for the NotificationApiServicer This service should implement the business logic for every endpoint for the NotificationApi API. Include any external packages or services that will be required by this service.

func (*NotificationApiService) SendSlackNotification added in v0.0.5

func (s *NotificationApiService) SendSlackNotification(ctx context.Context, sendSlackMessageRequest server.SendSlackMessageRequest) (server.ImplResponse, error)

SendSlackNotification - Send a Slack message

type SmsApiService added in v0.0.11

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

EmailApiService is a service that implents the logic for the EmailApiServicer This service should implement the business logic for every endpoint for the EmailApi API. Include any external packages or services that will be required by this service.

func (*SmsApiService) SendSMS added in v0.0.11

func (s *SmsApiService) SendSMS(ctx context.Context, sendSMSRequest server.SendSmsRequest) (server.ImplResponse, error)

SendSMS - Send an email

Jump to

Keyboard shortcuts

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