server

package
v0.4.3-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayServer

type GatewayServer struct {
	// contains filtered or unexported fields
}

func (*GatewayServer) Close

func (gs *GatewayServer) Close() error

func (*GatewayServer) Serve

func (gs *GatewayServer) Serve() error

type GrpcServer

type GrpcServer struct {
	postarv1.UnimplementedEmailServiceServer
	// contains filtered or unexported fields
}

func (*GrpcServer) Close

func (gs *GrpcServer) Close() error

func (*GrpcServer) SendEmail

func (gs *GrpcServer) SendEmail(ctx context.Context, request *postarv1.SendEmailRequest) (response *postarv1.SendEmailResponse, err error)

func (*GrpcServer) Serve

func (gs *GrpcServer) Serve() error

type Server

type Server interface {
	Serve() error
	Close() error
}

func New

func New(conf *config.PostarConfig, emailBiz service.EmailService) (Server, error)

func NewGatewayServer

func NewGatewayServer(conf *config.PostarConfig, emailService service.EmailService) (Server, error)

func NewGrpcServer

func NewGrpcServer(conf *config.PostarConfig, emailService service.EmailService) (Server, error)

Jump to

Keyboard shortcuts

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