services

package
v0.0.0-...-9e41cc5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContactService

type ContactService interface {
	AddMessage(ctx context.Context, contactDto dto.Contact) (models.Contact, error)
}

type EmailService

type EmailService interface {
	io.Closer
	NewEmail() *email.Email
	Send(to []string, subject string, body []byte) error
	SendEmail(*email.Email) error
}

type PostService

type PostService interface {
	Get(context.Context, uint64, uint64) ([]models.Post, error)
	GetOne(context.Context, uint64) (models.Post, error)
	Delete(context.Context, uint64) error
}

type SubscribeService

type SubscribeService interface {
	Subscribe(context.Context, dto.Subscription) (models.Subscription, error)
	Unsubscribe(context.Context, uint64) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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