server

package
v0.0.0-...-ecd1ea2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host           = "0.0.0.0"
	Port           = 27322
	Endpoints      = []string{}
	RevokeEtcdConn func() error
	Key            = "grpclb/service/notification"

	SMTP service.SMTP
)

Functions

func ShutdownGRPC

func ShutdownGRPC() error

func StartupGRPC

func StartupGRPC() error

Types

type GRPC

type GRPC struct {
	pb.UnimplementedNotificationServer
}

func (*GRPC) SendEmail

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

func (*GRPC) Version

func (g *GRPC) Version(ctx context.Context, _ *emptypb.Empty) (*wrapperspb.StringValue, error)

Jump to

Keyboard shortcuts

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