Documentation ¶
Index ¶
- Variables
- type Service
- func (s *Service) GetProfileBasics(_ context.Context, request *pb.GetProfileBasicsRequest) (*pb.GetProfileBasicsResponse, error)
- func (s *Service) GetProfilePrivate(_ context.Context, request *pb.GetProfilePrivateRequest) (*pb.GetProfilePrivateResponse, error)
- func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error
- func (s *Service) SetProfileStatus(_ context.Context, request *pb.SetProfileStatusRequest) (*pb.SetProfileStatusResponse, error)
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, ) (out sfx.GrpcServiceResult, err error) { if svc, e := NewService( l, pSetting.ProfileUrl, redisParams.Redis, mqParams.MessageQueue, mongoParams.MongoClient.Database(pSetting.ProfileStoreName), ); 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 (*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) RegisterWithGrpcServer ¶
func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error
func (*Service) SetProfileStatus ¶
func (s *Service) SetProfileStatus(_ context.Context, request *pb.SetProfileStatusRequest) (*pb.SetProfileStatusResponse, error)
Click to show internal directories.
Click to hide internal directories.