ovsservices

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const InsertLegSQL = `` /* 939-byte string literal not displayed */

InsertLegSQL - insert LegSQL query

Variables

This section is empty.

Functions

func StartOvsServer

func StartOvsServer(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)

StartOvsServer - Start Ovs server

Types

type LegService

type LegService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	ovsproto.UnimplementedLegServiceServer
	// contains filtered or unexported fields
}

LegService - For accessing Leg services

func NewLegService

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

NewLegService - Create Leg service

func (*LegService) CrLegStruct

func (lg *LegService) CrLegStruct(ctx context.Context, leg *ovsproto.Leg, userEmail string, requestID string) (*ovsstruct.Leg, error)

CrLegStruct - process Leg details

func (*LegService) CreateLeg

CreateLeg - Create Leg

func (*LegService) CreatePointToPointRouting

CreatePointToPointRouting - Create PointToPointRouting

func (*LegService) GetLeg

GetLeg - Get Leg

func (*LegService) GetLegByPk

GetLegByPk - Get Leg By Primary key(Id)

func (*LegService) GetLegs

GetLegs - Get Legs

func (*LegService) GetPointToPointRouting

GetPointToPointRouting - Get PointToPointRouting

func (*LegService) GetPointToPointRoutingByPk

GetPointToPointRoutingByPk - Get PointToPointRouting By Primary key(Id)

func (*LegService) GetPointToPointRoutings

GetPointToPointRoutings - Get PointToPointRoutings

func (*LegService) ProcessLeg

func (lg *LegService) ProcessLeg(ctx context.Context, in *ovsproto.CreateLegRequest) (*ovsproto.Leg, error)

ProcessLeg - Process Leg

type ServiceScheduleService

type ServiceScheduleService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	ovsproto.UnimplementedServiceScheduleServiceServer
	// contains filtered or unexported fields
}

ServiceScheduleService - For accessing ServiceSchedule services

func NewServiceScheduleService

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

NewServiceScheduleService - Create ServiceSchedule service

func (*ServiceScheduleService) CreateServiceSchedule

CreateServiceSchedule - Create ServiceSchedule

func (*ServiceScheduleService) GetServiceSchedule

GetServiceSchedule - Get ServiceSchedule

func (*ServiceScheduleService) GetServiceScheduleByPk

GetServiceScheduleByPk - Get ServiceSchedule By Primary key(Id)

func (*ServiceScheduleService) GetServiceScheduleByUniversalServiceReference

GetServiceScheduleByUniversalServiceReference - Get ServiceScheduleByUniversalServiceReference

func (*ServiceScheduleService) GetServiceSchedules

GetServiceSchedules - Get ServiceSchedules

func (*ServiceScheduleService) UpdateServiceScheduleByUniversalServiceReference

UpdateServiceScheduleByUniversalServiceReference - UpdateServiceScheduleByUniversalServiceReference

type VesselScheduleService

type VesselScheduleService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	ovsproto.UnimplementedVesselScheduleServiceServer
	// contains filtered or unexported fields
}

VesselScheduleService - For accessing VesselSchedule services

func NewVesselScheduleService

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

NewVesselScheduleService - Create VesselSchedule service

func (*VesselScheduleService) CreateVessel

CreateVessel - Create Vessel

func (*VesselScheduleService) CreateVesselSchedule

CreateVesselSchedule - Create VesselSchedule

func (*VesselScheduleService) GetVessel

GetVessel - Get Vessel

func (*VesselScheduleService) GetVesselByPk

GetVesselByPk - Get Vessel By Primary key(Id)

func (*VesselScheduleService) GetVesselSchedule

GetVesselSchedule - Get VesselSchedule

func (*VesselScheduleService) GetVesselScheduleByPk

GetVesselScheduleByPk - Get VesselSchedule By Primary key(Id)

func (*VesselScheduleService) GetVesselSchedules

GetVesselSchedules - Get VesselSchedules

func (*VesselScheduleService) GetVessels

GetVessels - Get Vessels

Jump to

Keyboard shortcuts

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