private

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	func(
		l *zap.Logger,
		s mfx2.AppParams,
		ms mailfx.MailSettingParams,
		mqParams mfx.MessageQueueParams,
		redisParams ofx.RedisParams,
		aParams mfx2.AppParams,
	) (gOut sfx.GrpcServiceResult, err error) {
		if svc, e := NewService(
			l,
			s.Deployment,
			redisParams.Redis,
			ms.MailUrl,
			ms.MailDefaultExpire,
			ms.MailEncryptionKey,
			mqParams.MessageQueue,
			aParams,
		); e != nil {
			err = e
			return
		} else {
			gOut.GrpcService = svc
			return
		}
	},
)

Functions

This section is empty.

Types

type Service

type Service struct {
	utility.WithoutAuth
	// contains filtered or unexported fields
}

func NewService

func NewService(
	l *zap.Logger,
	deployment string,
	redis *redis.Client,
	url string,
	defaultExpire int32,
	aesKey string,
	mq miface.MessageQueue,
	aParams mfx2.AppParams,
) (result *Service, err error)

func (*Service) RegisterWithGrpcServer

func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error

func (*Service) SendMail

func (s *Service) SendMail(_ context.Context, request *pb.SendMailRequest) (*pb.SendMailResponse, error)

Jump to

Keyboard shortcuts

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