service

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceModule = fx.Provide(
	func(
		l *zap.Logger,
		mq mfx.MessageQueueParams,
		settings analyfx.AnalyticsSettingParams,
	) (out sfx.GrpcServiceResult, gw sfx.GatewayServiceResult, err error) {
		if svc, e := NewService(l, mq.MessageQueue, settings); e != nil {
			err = e
		} else {
			out.GrpcService = svc
			gw.GatewayService = 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,
	mq miface.MessageQueue,
	settings analyfx.AnalyticsSettingParams,
) (result *Service, err error)

func (*Service) Analytics

func (s *Service) Analytics(
	ctx context.Context,
	events *pb.AnalyticsEvents,
) (*pb.Nothing, error)

func (*Service) RegisterWithGatewayServer

func (s *Service) RegisterWithGatewayServer(server siface.IGatewayServer) error

func (*Service) RegisterWithGrpcServer

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

Jump to

Keyboard shortcuts

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