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 ¶
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)
Click to show internal directories.
Click to hide internal directories.