eblcontrollers

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

Documentation

Overview

https://github.com/dcsaorg/DCSA-EBL/blob/master/src/main/java/org/dcsa/ebl/controller/TransportDocumentSummariesController.java

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 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

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

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

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

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