You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func NewVerifyHandler(in, out chan *Envelope, verifier Verifier) *VerifyHandler {
return &VerifyHandler{
input: in,
output: out,
verifier: verifier,
}
}
func (this *VerifyHandler) Handle() {
for envelope := range this.input {
envelope.Output = this.verifier.Verify(envelope.Input) // pass the input of channel to application verifier and get the modified output from the verifier.
this.output <- envelope // and send the envelope to output channel.