partyservices

package
v0.0.0-...-cc13779 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 27 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 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 DocumentPartyService

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

DocumentPartyService - For accessing Document Party services

func NewDocumentPartyService

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

NewDocumentPartyService - Create Document Party service

func (*DocumentPartyService) CreateDocumentPartiesByBookingID

CreateDocumentPartiesByBookingID - CreateDocumentPartiesByBookingID

func (*DocumentPartyService) CreateDocumentPartiesByShippingInstructionID

CreateDocumentPartiesByShippingInstructionID - CreateDocumentPartiesByShippingInstructionID

func (*DocumentPartyService) CreateDocumentParty

CreateDocumentParty - CreateDocumentParty

func (*DocumentPartyService) FetchDocumentPartiesByBookingID

FetchDocumentPartiesByBookingID - Get DocumentParties

func (*DocumentPartyService) FetchDocumentPartiesByByShippingInstructionID

FetchDocumentPartiesByByShippingInstructionID - Get DocumentParties

func (*DocumentPartyService) ProcessDocumentPartyRequest

ProcessDocumentPartyRequest - Process DocumentPartyRequest

func (*DocumentPartyService) ResolveDocumentPartiesForShippingInstructionID

ResolveDocumentPartiesForShippingInstructionID - ResolveDocumentPartiesForShippingInstructionID

type LocationService

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

LocationService - For accessing Location services

func NewLocationService

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

NewLocationService - Create Location service

func (*LocationService) CreateLocation

CreateLocation - CreateLocation

func (*LocationService) FetchLocationByID

FetchLocationByID - FetchLocationByID

func (*LocationService) LoadLocations

LoadLocations - Get Locations

func (*LocationService) ProcessLocationRequest

func (ls *LocationService) ProcessLocationRequest(ctx context.Context, in *partyproto.CreateLocationRequest) (*partyproto.Location, error)

ProcessLocationRequest - Process LocationRequest

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) CreateDisplayedAddress

CreateDisplayedAddress - CreateDisplayedAddress

func (*PartyService) CreateFacility

CreateFacility - CreateFacility

func (*PartyService) CreateParty

CreateParty - Create Party

func (*PartyService) CreatePartyContactDetail

CreatePartyContactDetail - Create PartyContactDetail

func (*PartyService) CreatePartyFunction

CreatePartyFunction - CreatePartyFunction

func (*PartyService) CreatePartyIdentifyingCode

CreatePartyIdentifyingCode - CreatePartyIdentifyingCode

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) ProcessDisplayedAddressRequest

func (ps *PartyService) ProcessDisplayedAddressRequest(ctx context.Context, in *partyproto.CreateDisplayedAddressRequest) (*partyproto.DisplayedAddress, error)

ProcessDisplayedAddressRequest - Process DisplayedAddressRequest

func (*PartyService) ProcessFacilityRequest

func (ps *PartyService) ProcessFacilityRequest(ctx context.Context, in *partyproto.CreateFacilityRequest) (*partyproto.Facility, error)

ProcessFacilityRequest - ProcessFacilityRequest

func (*PartyService) ProcessPartyFunctionRequest

func (ps *PartyService) ProcessPartyFunctionRequest(ctx context.Context, in *partyproto.CreatePartyFunctionRequest) (*partyproto.PartyFunction, error)

ProcessPartyFunctionRequest - Process PartyFunctionRequest

func (*PartyService) ProcessPartyIdentifyingCodeRequest

ProcessPartyIdentifyingCodeRequest - Process PartyIdentifyingCodeRequest

func (*PartyService) UpdateParty

UpdateParty - Update party

func (*PartyService) UpdatePartyContactDetail

UpdatePartyContactDetail - Update User In Parties

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) AddAPIPermission

AddAPIPermission - used to create permission

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