cacert-gosigner/client/processing/process.go
2020-04-20 22:01:06 +02:00

20 lines
508 B
Go

package processing
import (
"fmt"
"git.cacert.org/cacert-gosigner/datastructures"
"github.com/sirupsen/logrus"
)
func Process(response *datastructures.SignerResponse) (err error) {
logrus.Infof("process response of type %s", response.Action)
logrus.Tracef("process response %+v", response)
switch response.Action {
case datastructures.ActionNul:
logrus.Trace("received response for NUL request")
return
default:
return fmt.Errorf("unsupported action in response 0x%x", response.Action)
}
}