// New creates new credential handler.
New creates new credential handler.
// New creates new credential handler .
func New(anchorPublisher anchorPublisher, casResolver casResolver,
	documentLoader ld.DocumentLoader, monitoringSvc monitoringSvc,
	maxDelay time.Duration, anchorLinkStore anchorLinkStore) *AnchorEventHandler {
	return &AnchorEventHandler{
		anchorPublisher: anchorPublisher,
		maxDelay:        maxDelay,
		casResolver:     casResolver,
		documentLoader:  documentLoader,
		monitoringSvc:   monitoringSvc,
		anchorLinkStore: anchorLinkStore,
		unmarshal:       json.Unmarshal,
	}
}
func New ( anchorPublisher anchorPublisher , casResolver casResolver , documentLoader ld . DocumentLoader , monitoringSvc monitoringSvc , maxDelay time . Duration , anchorLinkStore anchorLinkStore ) * AnchorEventHandler { return & AnchorEventHandler { anchorPublisher : anchorPublisher , maxDelay : maxDelay , casResolver : casResolver , documentLoader : documentLoader , monitoringSvc : monitoringSvc , anchorLinkStore : anchorLinkStore , unmarshal : json . Unmarshal , } }
New creates new credential handler.
New creates new credential handler .