bkgcontrollers

package
v0.0.0-...-152e571 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(log *zap.Logger, mux *http.ServeMux, store *goredisstore.GoRedisStore, serverOpt *config.ServerOptions, grpcServerOpt *config.GrpcServerOptions, uptraceOpt *config.UptraceOptions, configFilePath string) error

Init the bkg controllers

func InitTest

func InitTest(log *zap.Logger, mux *http.ServeMux, store *goredisstore.GoRedisStore, serverOpt *config.ServerOptions, grpcServerOpt *config.GrpcServerOptions, uptraceOpt *config.UptraceOptions, configFilePath string) error

InitTest the bkg controllers

Types

type BkgController

type BkgController struct {
	UserServiceClient partyproto.UserServiceClient
	BkgServiceClient  bkgproto.BkgServiceClient

	ServerOpt *config.ServerOptions
	// contains filtered or unexported fields
}

BkgController - Create Bkg Controller

func NewBkgController

func NewBkgController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, bkgServiceClient bkgproto.BkgServiceClient, wfHelper common.WfHelper, workflowClient client.Client, serverOpt *config.ServerOptions) *BkgController

NewBkgController - Create Bkg Handler

func (*BkgController) CancelBookingByCarrierBookingRequestReference

func (b *BkgController) CancelBookingByCarrierBookingRequestReference(w http.ResponseWriter, r *http.Request)

CancelBookingByCarrierBookingRequestReference - CancelBookingByCarrierBookingReference

func (*BkgController) CreateBooking

func (b *BkgController) CreateBooking(w http.ResponseWriter, r *http.Request)

CreateBooking - Create Booking Header

func (*BkgController) GetBookingByCarrierBookingRequestReference

func (b *BkgController) GetBookingByCarrierBookingRequestReference(w http.ResponseWriter, r *http.Request)

GetBookingByCarrierBookingRequestReference - GetBookingByCarrierBookingRequestReference Booking

func (*BkgController) UpdateBooking

func (b *BkgController) UpdateBooking(w http.ResponseWriter, r *http.Request)

UpdateBooking - Update Booking

type BkgShipmentSummaryController

type BkgShipmentSummaryController struct {
	UserServiceClient               partyproto.UserServiceClient
	BkgShipmentSummaryServiceClient bkgproto.BkgShipmentSummaryServiceClient
	ServerOpt                       *config.ServerOptions
	// contains filtered or unexported fields
}

BkgShipmentSummaryController - Create Booking Controller

func NewBkgShipmentSummaryController

func NewBkgShipmentSummaryController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, bkgShipmentSummaryServiceClient bkgproto.BkgShipmentSummaryServiceClient, serverOpt *config.ServerOptions) *BkgShipmentSummaryController

NewBkgShipmentSummaryController - Create Booking Handler

func (*BkgShipmentSummaryController) GetBkgShipmentSummaries

func (bss *BkgShipmentSummaryController) GetBkgShipmentSummaries(w http.ResponseWriter, r *http.Request)

GetBkgShipmentSummaries - list Shipment Summaries

type BkgSummaryController

type BkgSummaryController struct {
	UserServiceClient       partyproto.UserServiceClient
	BkgSummaryServiceClient bkgproto.BkgSummaryServiceClient
	ServerOpt               *config.ServerOptions
	// contains filtered or unexported fields
}

BkgSummaryController - Create Booking Controller

func NewBkgSummaryController

func NewBkgSummaryController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, bkgSummaryServiceClient bkgproto.BkgSummaryServiceClient, serverOpt *config.ServerOptions) *BkgSummaryController

NewBkgSummaryController - Create Booking Handler

func (*BkgSummaryController) GetBookingSummaries

func (bs *BkgSummaryController) GetBookingSummaries(w http.ResponseWriter, r *http.Request)

GetBookingSummaries - list Booking Summaries

Jump to

Keyboard shortcuts

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