Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2020 Changes in this version + const ComponentRevocation + const ComponentSession + const ComponentStatic + const PostSizeLimit + const ReadTimeout + const WriteTimeout + var Logger *logrus.Logger = logrus.StandardLogger() + var SizeLimitMiddleware = func(next http.Handler) http.Handler + func BinaryResponse(v interface{}, err *irma.RemoteError) (int, []byte) + func DoResultCallback(callbackUrl string, result *SessionResult, issuer string, validity int, ...) + func JsonResponse(v interface{}, err *irma.RemoteError) (int, []byte) + func LocalIP() (string, error) + func LogError(err error) error + func LogFatal(err error) error + func LogMiddleware(typ string, opts LogOptions) func(next http.Handler) http.Handler + func LogRequest(typ, proto, method, url, from string, headers http.Header, message []byte) + func LogResponse(status int, duration time.Duration, binary bool, response []byte) + func LogWarning(err error) + func NewLogger(verbosity int, quiet bool, json bool) *logrus.Logger + func ParseSessionRequest(request interface{}) (irma.RequestorRequest, error) + func RemoteError(err Error, message string) *irma.RemoteError + func ResultJwt(sessionresult *SessionResult, issuer string, validity int, ...) (string, error) + func ToJson(o interface{}) string + func TypeString(x interface{}) string + func Verbosity(level int) logrus.Level + func WriteBinaryResponse(w http.ResponseWriter, object interface{}, rerr *irma.RemoteError) + func WriteError(w http.ResponseWriter, err Error, msg string) + func WriteJson(w http.ResponseWriter, object interface{}) + func WriteResponse(w http.ResponseWriter, object interface{}, rerr *irma.RemoteError) + func WriteString(w http.ResponseWriter, str string) + type Configuration struct + DisableSchemesUpdate bool + DisableTLS bool + Email string + EnableSSE bool + IrmaConfiguration *irma.Configuration + IssuerPrivateKeys map[irma.IssuerIdentifier]map[uint]*gabi.PrivateKey + IssuerPrivateKeysPath string + JwtIssuer string + JwtPrivateKey string + JwtPrivateKeyFile string + JwtRSAPrivateKey *rsa.PrivateKey + LogJSON bool + Logger *logrus.Logger + Production bool + Quiet bool + RevocationDBConnStr string + RevocationDBType string + RevocationSettings irma.RevocationSettings + SchemesAssetsPath string + SchemesPath string + SchemesUpdateInterval int + StaticSessionRequests map[string]irma.RequestorRequest + StaticSessions map[string]interface{} + URL string + Verbose int + func (conf *Configuration) Check() error + func (conf *Configuration) HavePrivateKeys() bool + type Error struct + Description string + Status int + Type ErrorType + var ErrorAttributesExpired Error = Error{ ... } + var ErrorAttributesMissing Error = Error{ ... } + var ErrorAttributesWrong Error = Error{ ... } + var ErrorCannotIssue Error = Error{ ... } + var ErrorInvalidProofs Error = Error{ ... } + var ErrorInvalidRequest Error = Error{ ... } + var ErrorInvalidTimestamp Error = Error{ ... } + var ErrorIssuanceFailed Error = Error{ ... } + var ErrorIssuingDisabled Error = Error{ ... } + var ErrorKeyshareProofMissing Error = Error{ ... } + var ErrorMalformedInput Error = Error{ ... } + var ErrorMalformedIssuerRequest Error = Error{ ... } + var ErrorMalformedSignatureRequest Error = Error{ ... } + var ErrorMalformedVerifierRequest Error = Error{ ... } + var ErrorProtocolVersion Error = Error{ ... } + var ErrorRevocation Error = Error{ ... } + var ErrorSessionUnknown Error = Error{ ... } + var ErrorUnauthorized Error = Error{ ... } + var ErrorUnexpectedRequest Error = Error{ ... } + var ErrorUnknown Error = Error{ ... } + var ErrorUnknownPublicKey Error = Error{ ... } + var ErrorUnknownRevocationKey Error = Error{ ... } + var ErrorUnsupported Error = Error{ ... } + type ErrorType string + type LegacySessionResult struct + Disclosed []*irma.DisclosedAttribute + Err *irma.RemoteError + ProofStatus irma.ProofStatus + Signature *irma.SignedMessage + Status Status + Token string + Type irma.Action + type LogOptions struct + EncodeBinary bool + From bool + Headers bool + Response bool + type SessionHandler func(*SessionResult) + type SessionPackage struct + SessionPtr *irma.Qr + Token string + type SessionResult struct + Disclosed [][]*irma.DisclosedAttribute + Err *irma.RemoteError + LegacySession bool + ProofStatus irma.ProofStatus + Signature *irma.SignedMessage + Status Status + Token string + Type irma.Action + func (r *SessionResult) Legacy() *LegacySessionResult + type Status string + const StatusCancelled + const StatusConnected + const StatusDone + const StatusInitialized + const StatusTimeout + func (status Status) Finished() bool