message

package
v0.0.0-...-345574f Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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 Controller

type Controller interface {
	SendMessage(ginCtx *gin.Context)
}

Controller - message controller interface

func NewController

func NewController(exec boil.ContextExecutor) Controller

NewController - message controller

type EmailContent

type EmailContent struct {
	LogoURL          string
	ReceiverImgURL   string
	ReceiverName     string
	ReceiverPosition string
	ReceiverCompany  string
	ReceiverHeadline string
	SenderImgURL     string
	SenderName       string
	SenderEmail      string
	SenderMessage    string
}

type Repository

type Repository interface {
	SendMessage(ctx context.Context, toPersonID string, senderIamID string, title string, message string, postTitle string) error
}

Repository - message repository interface

type SendMessageParams

type SendMessageParams struct {
	ToID      string `json:"to"`
	Subject   string `json:"subject"`
	Body      string `json:"body"`
	PostTitle string `json:"postTitle"`
}

SendMessageParams struct

type Service

type Service interface {
	SendMessage(ctx context.Context, toPersonID string,
		senderIamID string, subject string, body string, postTitle string) error
}

Service - message service interface

Jump to

Keyboard shortcuts

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