tntservices

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

Documentation

Index

Constants

View Source
const InsertEquipmentEventSQL = `` /* 417-byte string literal not displayed */

InsertEquipmentEventSQL - insert EquipmentEventSQL query

View Source
const InsertEquipmentEventTypeSQL = `` /* 273-byte string literal not displayed */

InsertEquipmentEventTypeSQL - insert EquipmentEventTypeSQL query

View Source
const InsertEventClassifierSQL = ``
View Source
const InsertEventSQL = ``
View Source
const InsertOperationsEventSQL = `` /* 767-byte string literal not displayed */

InsertOperationsEventSQL - insert OperationsEventSQL query

View Source
const InsertOperationsEventTypeSQL = `` /* 282-byte string literal not displayed */

InsertOperationsEventTypeSQL - insert OperationsEventTypeSQL query

View Source
const InsertShipmentEventSQL = `` /* 380-byte string literal not displayed */

InsertShipmentEventSQL - insert ShipmentEventSQL query

View Source
const InsertShipmentEventTypeSQL = `` /* 264-byte string literal not displayed */

InsertShipmentEventTypeSQL - insert ShipmentEventTypeSQL query

View Source
const InsertTransportEventSQL = `` /* 366-byte string literal not displayed */

InsertTransportEventSQL - insert TransportEventSQL query

View Source
const InsertTransportEventTypeSQL = `` /* 273-byte string literal not displayed */

InsertTransportEventTypeSQL - insert TransportEventTypeSQL query

Variables

This section is empty.

Functions

func StartTntServer

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

StartTntServer - Start Tnt server

Types

type EventService

type EventService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	tntproto.UnimplementedEventServiceServer
	// contains filtered or unexported fields
}

EventService - For accessing Transport Document services

func NewEventService

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

NewEventService - Create Transport Document service

func (*EventService) CrEquipmentEventStruct

func (es *EventService) CrEquipmentEventStruct(ctx context.Context, equipmentEvent *tntproto.EquipmentEvent, userEmail string, requestID string) (*tntstruct.EquipmentEvent, error)

CrEquipmentEventStruct - process EquipmentEvent details

func (*EventService) CrEventStruct

func (es *EventService) CrEventStruct(ctx context.Context, event *tntproto.Event, userEmail string, requestID string) (*tntstruct.Event, error)

CrEventStruct - process Event details

func (*EventService) CrOperationsEventStruct

func (es *EventService) CrOperationsEventStruct(ctx context.Context, operationsEvent *tntproto.OperationsEvent, userEmail string, requestID string) (*tntstruct.OperationsEvent, error)

CrOperationsEventStruct - process OperationsEvent details

func (*EventService) CrShipmentEventStruct

func (es *EventService) CrShipmentEventStruct(ctx context.Context, shipmentEvent *tntproto.ShipmentEvent, userEmail string, requestID string) (*tntstruct.ShipmentEvent, error)

CrShipmentEventStruct - process ShipmentEvent details

func (*EventService) CrTransportEventStruct

func (es *EventService) CrTransportEventStruct(ctx context.Context, transportEvent *tntproto.TransportEvent, userEmail string, requestID string) (*tntstruct.TransportEvent, error)

CrTransportEventStruct - process TransportEvent details

func (*EventService) CreateEquipmentEvent

CreateEquipmentEvent - Create EquipmentEvent

func (*EventService) CreateEvent

CreateEvent - Create Event

func (*EventService) CreateOperationsEvent

CreateOperationsEvent - Create OperationsEvent

func (*EventService) CreateShipmentEvent

CreateShipmentEvent - Create ShipmentEvent

func (*EventService) CreateShipmentEventFromShippingInstruction

CreateShipmentEventFromShippingInstruction - CreateShipmentEventFromShippingInstruction

func (*EventService) CreateTransportEvent

CreateTransportEvent - Create TransportEvent

func (*EventService) GetEvent

GetEvent - find By ID

func (*EventService) GetEvents

GetEvents - Get Events

func (*EventService) LoadOperationsRelatedEntities

LoadOperationsRelatedEntities - Get OperationsEvents

func (*EventService) LoadRelatedEntities

LoadRelatedEntities - Get EquipmentEvents

func (*EventService) LoadShipmentRelatedEntities

LoadShipmentRelatedEntities - Get ShipmentEvents

func (*EventService) LoadTransportRelatedEntities

LoadTransportRelatedEntities - Get TransportEvents

func (*EventService) ProcessEquipmentEvent

ProcessEquipmentEvent - Process EquipmentEvent

func (*EventService) ProcessEventClassifier

ProcessEventClassifier - Process EventClassifier

func (*EventService) ProcessOperationsEvent

ProcessOperationsEvent - Process OperationsEvent

func (*EventService) ProcessShipmentEvent

ProcessShipmentEvent - Process ShipmentEvent

func (*EventService) ProcessTransportEvent

ProcessTransportEvent - Process TransportEvent

type EventSubscriptionService

type EventSubscriptionService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	tntproto.UnimplementedEventSubscriptionServiceServer
	// contains filtered or unexported fields
}

EventSubscriptionService - For accessing Transport Document services

func NewEventSubscriptionService

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

NewEventSubscriptionService - Create Transport Document service

func (*EventSubscriptionService) CrEventSubscriptionStruct

func (ess *EventSubscriptionService) CrEventSubscriptionStruct(ctx context.Context, eventSubscription *tntproto.EventSubscription, userEmail string, requestID string) (*tntstruct.EventSubscription, error)

CrEventSubscriptionStruct - process EventSubscription details

func (*EventSubscriptionService) CreateEventSubscription

CreateEventSubscription - Create EventSubscription

func (*EventSubscriptionService) DeleteEventSubscriptionByID

DeleteEventSubscriptionByID - DeleteEventSubscriptionByID EventSubscription

func (*EventSubscriptionService) FindEventSubscriptionByID

FindEventSubscriptionByID - find By ID

func (*EventSubscriptionService) GetEventSubscriptions

GetEventSubscriptions - GetEventSubscriptions

func (*EventSubscriptionService) UpdateEventSubscription

UpdateEventSubscription - Update EventSubscription

type SealService

type SealService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	tntproto.UnimplementedSealServiceServer
	// contains filtered or unexported fields
}

SealService - For accessing Transport Document services

func NewSealService

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

NewSealService - Create Transport Document service

func (*SealService) CreateSeal

CreateSeal - Create Seal

func (*SealService) GetSeals

GetSeals - Get Seals

Jump to

Keyboard shortcuts

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