partyservices

package
v0.0.0-...-94a8b92 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserWithNewContext

func GetUserWithNewContext(ctx context.Context, userId string, userEmail string, requestId string, userServiceClient partyproto.UserServiceClient) (*partyproto.User, error)

GetUserWithNewContext - GetUserWithNewContext

func PartyTracer

func PartyTracer(ctx context.Context)

func StartPartyServer

func StartPartyServer(log *zap.Logger, isTest bool, pwd string, dbOpt *config.DBOptions, redisOpt *config.RedisOptions, mailerOpt *config.MailerOptions, grpcServerOpt *config.GrpcServerOptions, jwtOpt *config.JWTOptions, oauthOpt *config.OauthOptions, userOpt *config.UserOptions, uptraceOpt *config.UptraceOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartPartyServer - Start Party server

func StartUserServer

func StartUserServer(log *zap.Logger, isTest bool, pwd string, dbOpt *config.DBOptions, redisOpt *config.RedisOptions, mailerOpt *config.MailerOptions, serverOpt *config.ServerOptions, grpcServerOpt *config.GrpcServerOptions, jwtOpt *config.JWTOptions, oauthOpt *config.OauthOptions, userOpt *config.UserOptions, uptraceOpt *config.UptraceOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartUserServer - Start User Server

Types

type PartyService

type PartyService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	partyproto.UnimplementedPartyServiceServer
	// contains filtered or unexported fields
}

PartyService - For accessing Party services

func NewPartyService

func NewPartyService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *PartyService

NewPartyService - Create Party service

func (*PartyService) CreateParty

CreateParty - Create Party

func (*PartyService) CreatePartyContactDetail

CreatePartyContactDetail - Create PartyContactDetail

func (*PartyService) DeleteParty

DeleteParty - Delete party

func (*PartyService) DeletePartyContactDetail

DeletePartyContactDetail - Delete party contact

func (*PartyService) GetParties

GetParties - Get Parties

func (*PartyService) GetParty

GetParty - Get Party

func (*PartyService) GetPartyByPk

GetPartyByPk - Get Party By Primary key(Id)

func (*PartyService) GetPartyContactDetail

GetPartyContactDetail - Get Party Contact

func (*PartyService) GetPartyContactDetailStruct

func (ps *PartyService) GetPartyContactDetailStruct(ctx context.Context, in *commonproto.GetRequest, partyContactDetailTmp partystruct.PartyContactDetail) (*partyproto.PartyContactDetail, error)

GetPartyContactDetailStruct - Get partyContactDetail

func (*PartyService) GetPartyStruct

func (ps *PartyService) GetPartyStruct(ctx context.Context, in *commonproto.GetRequest, partyTmp partystruct.Party) (*partyproto.Party, error)

GetPartyStruct - Get party

func (*PartyService) UpdateParty

UpdateParty - Update party

func (*PartyService) UpdatePartyContactDetail

UpdatePartyContactDetail - Update User In Parties

type Roles

type Roles []string

Roles - Used for roles

type UserService

type UserService struct {
	DBService     *common.DBService
	RedisService  *common.RedisService
	MailerService common.MailerIntf
	JWTOptions    *config.JWTOptions
	UserOptions   *config.UserOptions
	ServerOptions *config.ServerOptions
	partyproto.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

UserService - For accessing user services

func NewUserService

func NewUserService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, mailerOpt common.MailerIntf, jwtOptions *config.JWTOptions, userOpt *config.UserOptions, serverOpt *config.ServerOptions) *UserService

NewUserService - Create User Service

func (*UserService) AssignRolesToUsers

AssignRolesToUsers - used to assign roles to users

func (*UserService) ChangePassword

ChangePassword - used to update password

func (*UserService) CreateRole

CreateRole - used to create Role

func (*UserService) DeleteRole

DeleteRole - used to delete Role

func (*UserService) DeleteUser

DeleteUser - used to get user by Id

func (*UserService) GetAuthUserDetails

GetAuthUserDetails - used to get auth user details

func (*UserService) GetRole

GetRole - used to get Role

func (*UserService) GetRoles

GetRoles - used to get Roles

func (*UserService) GetUser

GetUser - used to get user by Id

func (*UserService) GetUserByEmail

GetUserByEmail - Get user details by email

func (*UserService) GetUsers

GetUsers - Get users

func (*UserService) RefreshToken

RefreshToken - used for Refresh Token this needs to convert to auth0 code

func (*UserService) UpdateRole

UpdateRole - used to update Role

func (*UserService) UpdateUser

func (*UserService) UserTracer

func (u *UserService) UserTracer(ctx context.Context)

func (*UserService) ViewUserRoles

ViewUserRoles - used to View User Roles

Jump to

Keyboard shortcuts

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