server

package
v0.0.0-...-4047caf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host = "0.0.0.0"
	Port = 9091

	// timeout = 10 * time.Second
	SMTP system.SMTP
)

Functions

func RunGRPC

func RunGRPC()

func ShutdownGRPC

func ShutdownGRPC() error

Types

type GRPC

type GRPC struct {
	pb.UnimplementedNotificationServer
}

func (*GRPC) GetVersion

func (*GRPC) SendEmail

func (g *GRPC) SendEmail(ctx context.Context, mail *pb.Mail) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

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