controller

package
v0.0.0-...-fb1bee7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	SMTP *conf.SMTP

	pb.UnimplementedEmailServer
}

func NewEmail

func NewEmail(smtp *conf.SMTP) *Email

func (*Email) Send

func (e *Email) Send(ctx context.Context, req *pb.Mail) (*wrapperspb.StringValue, error)

func (*Email) Service

func (e *Email) Service() func(*grpc.Server)

type Ntfy

type Ntfy struct {
	NTFY *conf.NTFY
	pb.UnimplementedNtfyServer
}

func NewNtfy

func NewNtfy(ntfy *conf.NTFY) *Ntfy

func (*Ntfy) Send

func (n *Ntfy) Send(ctx context.Context, msg *pb.Msg) (*wrapperspb.StringValue, error)

func (*Ntfy) Service

func (n *Ntfy) Service() func(*grpc.Server)

type Template

type Template struct {
	pb.UnimplementedTemplateServer
}

func NewTemplate

func NewTemplate() *Template

func (*Template) Render

func (*Template) Service

func (t *Template) Service() func(*grpc.Server)

Jump to

Keyboard shortcuts

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