private

package
v0.0.59 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	func(
		l *zap.Logger,
		pSetting pfx.ProfileSettingParams,
		dbProvider ofx.DocumentStoreParams,
		redisParams ofx.RedisParams,
		rcParams ofx.RedisCacheParams,
		mongoParams ofx.MongoParams,
		mqParams mfx.MessageQueueParams,
		mysqlDb mysqlpkg.Param,
		mongoDb mongopkg.Param,
		set setting.Param,
	) (out sfx.GrpcServiceResult, err error) {
		if svc, e := NewService(
			l,
			pSetting.ProfileUrl,
			redisParams.Redis,
			mqParams.MessageQueue,
			mongoParams.MongoClient.Database(pSetting.ProfileStoreName),
			mysqlDb,
			mongoDb,
			set,
		); e != nil {
			err = e
		} else {
			out.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,
	url string,
	client *redis.Client,
	mq miface.MessageQueue,
	mongoDB *mongo.Database,
	mysqlDb mysqlpkg.Param,
	mongoDb mongopkg.Param,
	set setting.Param,
) (result *Service, err error)

func (*Service) ChannelJoin added in v0.0.14

func (s *Service) ChannelJoin(_ context.Context, request *pb.ChannelJoinRequest) (*pb.ChannelJoinResponse, error)

func (*Service) GetProfileBasics

func (s *Service) GetProfileBasics(_ context.Context, request *pb.GetProfileBasicsRequest) (*pb.GetProfileBasicsResponse, error)

func (*Service) GetProfilePrivate

func (s *Service) GetProfilePrivate(_ context.Context, request *pb.GetProfilePrivateRequest) (*pb.GetProfilePrivateResponse, error)

func (*Service) ItemFashionChange added in v0.0.57

func (s *Service) ItemFashionChange(_ context.Context, request *pb.ItemFashionChangeRequest) (*pb.ItemFashionChangeResponse, error)

func (*Service) ItemFashionUnload added in v0.0.57

func (s *Service) ItemFashionUnload(_ context.Context, request *pb.ItemFashionUnloadRequest) (*pb.ItemFashionUnloadResponse, error)

func (*Service) ItemUse added in v0.0.57

func (s *Service) ItemUse(_ context.Context, request *pb.ItemUseRequest) (*pb.ItemUseResponse, error)

func (*Service) PlayerPropNotify added in v0.0.57

func (s *Service) PlayerPropNotify(_ context.Context, request *pb.PlayerPropNotifyRequest) (*pb.PlayerPropNotifyResponse, error)

func (*Service) RegisterWithGrpcServer

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

func (*Service) SetProfileStatus

func (s *Service) SetProfileStatus(_ context.Context, request *pb.SetProfileStatusRequest) (*pb.SetProfileStatusResponse, error)

Jump to

Keyboard shortcuts

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