Documentation ¶
Overview ¶
Index ¶
- func Init(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, ...) error
- func InitTest(log *zap.Logger, rateOpt *config.RateOptions, jwtOpt *config.JWTOptions, ...) error
- type ShippingInstructionController
- func (sis *ShippingInstructionController) CreateShippingInstruction(ctx context.Context, w http.ResponseWriter, r *http.Request, ...)
- func (sis *ShippingInstructionController) GetShippingInstructionByShippingInstructionReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (sis *ShippingInstructionController) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (sis *ShippingInstructionController) UpdateShippingInstruction(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- type ShippingInstructionSummaryController
- type TransportDocumentController
- func (td *TransportDocumentController) ApproveTransportDocument(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (td *TransportDocumentController) CreateTransportDocument(ctx context.Context, w http.ResponseWriter, r *http.Request, ...)
- func (td *TransportDocumentController) GetTransportDocumentByTransportDocumentReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, ...)
- func (td *TransportDocumentController) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type TransportDocumentSummaryController
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 ebl 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 ShippingInstructionController ¶
type ShippingInstructionController struct { UserServiceClient partyproto.UserServiceClient ShippingInstructionServiceClient eblproto.ShippingInstructionServiceClient // contains filtered or unexported fields }
ShippingInstructionController - Create ShippingInstruction Controller
func NewShippingInstructionController ¶
func NewShippingInstructionController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, shippingInstructionServiceClient eblproto.ShippingInstructionServiceClient, wfHelper common.WfHelper, workflowClient client.Client) *ShippingInstructionController
NewShippingInstructionController - Create ShippingInstruction Handler
func (*ShippingInstructionController) CreateShippingInstruction ¶
func (sis *ShippingInstructionController) CreateShippingInstruction(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse, tokenString string)
CreateShippingInstruction - Create ShippingInstruction Header
func (*ShippingInstructionController) GetShippingInstructionByShippingInstructionReference ¶
func (sis *ShippingInstructionController) GetShippingInstructionByShippingInstructionReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)
GetShippingInstructionByShippingInstructionReference - GetShippingInstructionByShippingInstructionReference ShippingInstruction
func (*ShippingInstructionController) ServeHTTP ¶
func (sis *ShippingInstructionController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP - parse url and call controller action
func (*ShippingInstructionController) UpdateShippingInstruction ¶
func (sis *ShippingInstructionController) UpdateShippingInstruction(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse, tokenString string)
UpdateShippingInstruction - Update ShippingInstruction
type ShippingInstructionSummaryController ¶
type ShippingInstructionSummaryController struct { UserServiceClient partyproto.UserServiceClient ShippingInstructionSummaryServiceClient eblproto.ShippingInstructionSummaryServiceClient // contains filtered or unexported fields }
ShippingInstructionSummaryController - Create ShippingInstructionSummary Controller
func NewShippingInstructionSummaryController ¶
func NewShippingInstructionSummaryController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, shippingInstructionSummaryServiceClient eblproto.ShippingInstructionSummaryServiceClient) *ShippingInstructionSummaryController
NewShippingInstructionSummaryController - Create ShippingInstructionSummary Handler
func (*ShippingInstructionSummaryController) GetShippingInstructionSummaries ¶
func (cc *ShippingInstructionSummaryController) GetShippingInstructionSummaries(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)
GetShippingInstructionSummaries - list ShippingInstruction Headers
func (*ShippingInstructionSummaryController) ServeHTTP ¶
func (cc *ShippingInstructionSummaryController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP - parse url and call controller action
type TransportDocumentController ¶
type TransportDocumentController struct { UserServiceClient partyproto.UserServiceClient TransportDocumentServiceClient eblproto.TransportDocumentServiceClient // contains filtered or unexported fields }
TransportDocumentController - Create TransportDocument Controller
func NewTransportDocumentController ¶
func NewTransportDocumentController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, transportDocumentServiceClient eblproto.TransportDocumentServiceClient, wfHelper common.WfHelper, workflowClient client.Client) *TransportDocumentController
NewTransportDocumentController - Create TransportDocument Handler
func (*TransportDocumentController) ApproveTransportDocument ¶
func (td *TransportDocumentController) ApproveTransportDocument(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse, tokenString string)
ApproveTransportDocument - ApproveTransportDocument
func (*TransportDocumentController) CreateTransportDocument ¶
func (td *TransportDocumentController) CreateTransportDocument(ctx context.Context, w http.ResponseWriter, r *http.Request, user *partyproto.GetAuthUserDetailsResponse, tokenString string)
CreateTransportDocument - Create TransportDocument Header
func (*TransportDocumentController) GetTransportDocumentByTransportDocumentReference ¶
func (td *TransportDocumentController) GetTransportDocumentByTransportDocumentReference(ctx context.Context, w http.ResponseWriter, r *http.Request, id string, user *partyproto.GetAuthUserDetailsResponse)
GetTransportDocumentByTransportDocumentReference - GetTransportDocumentByTransportDocumentReference TransportDocument
func (*TransportDocumentController) ServeHTTP ¶
func (td *TransportDocumentController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP - parse url and call controller action
type TransportDocumentSummaryController ¶
type TransportDocumentSummaryController struct { UserServiceClient partyproto.UserServiceClient TransportDocumentServiceClient eblproto.TransportDocumentServiceClient // contains filtered or unexported fields }
TransportDocumentSummaryController - Create TransportDocumentSummary Controller
func NewTransportDocumentSummaryController ¶
func NewTransportDocumentSummaryController(log *zap.Logger, userServiceClient partyproto.UserServiceClient, transportDocumentServiceClient eblproto.TransportDocumentServiceClient) *TransportDocumentSummaryController
NewTransportDocumentSummaryController - Create TransportDocumentSummary Handler
func (*TransportDocumentSummaryController) GetTransportDocumentSummaries ¶
func (cc *TransportDocumentSummaryController) GetTransportDocumentSummaries(ctx context.Context, w http.ResponseWriter, r *http.Request, limit string, cursor string, user *partyproto.GetAuthUserDetailsResponse)
GetTransportDocumentSummaries - list TransportDocument Headers
func (*TransportDocumentSummaryController) ServeHTTP ¶
func (cc *TransportDocumentSummaryController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP - parse url and call controller action