bkgcontrollers

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

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, 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, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, mux *http.ServeMux, store *goredisstore.GoRedisStore, serverOpt *config.ServerOptions, grpcServerOpt *config.GrpcServerOptions, uptraceOpt *config.UptraceOptions, configFilePath string) error

InitTest the user controllers

Types

type BkgController

type BkgController struct {
	UserServiceClient partyproto.UserServiceClient
	BkgServiceClient  bkgproto.BkgServiceClient
	// 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) *BkgController

NewBkgController - Create Bkg Handler

func (*BkgController) CancelBookingByCarrierBookingRequestReference

func (b *BkgController) CancelBookingByCarrierBookingRequestReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse, tokenString string)

CancelBookingByCarrierBookingRequestReference - CancelBookingByCarrierBookingReference

func (*BkgController) CreateBooking

func (b *BkgController) CreateBooking(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse, tokenString string)

CreateBooking - Create Booking Header

func (*BkgController) GetBookingByCarrierBookingRequestReference

func (b *BkgController) GetBookingByCarrierBookingRequestReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)

GetBookingByCarrierBookingRequestReference - GetBookingByCarrierBookingRequestReference Booking

func (*BkgController) ServeHTTP

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

ServeHTTP - parse url and call controller action

func (*BkgController) UpdateBooking

func (b *BkgController) UpdateBooking(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse, tokenString string)

UpdateBooking - Update Booking

type BkgShipmentSummaryController

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

BkgShipmentSummaryController - Create Booking Controller

func NewBkgShipmentSummaryController

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

NewBkgShipmentSummaryController - Create Booking Handler

func (*BkgShipmentSummaryController) GetBkgShipmentSummaries

func (cc *BkgShipmentSummaryController) GetBkgShipmentSummaries(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)

GetBkgShipmentSummaries - list Shipment Summaries

func (*BkgShipmentSummaryController) ServeHTTP

ServeHTTP - parse url and call controller action

type BkgSummaryController

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

BkgSummaryController - Create Booking Controller

func NewBkgSummaryController

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

NewBkgSummaryController - Create Booking Handler

func (*BkgSummaryController) GetBookingSummaries

func (cc *BkgSummaryController) GetBookingSummaries(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)

GetBookingSummaries - list Booking Summaries

func (*BkgSummaryController) ServeHTTP

func (cc *BkgSummaryController) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP - parse url and call controller action

Jump to

Keyboard shortcuts

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