Documentation ¶
Overview ¶
Package servercore is the core of the IRMA server library, allowing IRMA verifiers, issuers or attribute-based signature applications to perform IRMA sessions with irmaclient instances (i.e. the IRMA app). It exposes a small interface to expose to other programming languages through cgo. It is used by the irmaserver package but otherwise not meant for use in Go.
Index ¶
- func ParsePath(path string) (string, string, error)
- type Server
- func (s *Server) CancelSession(token string) error
- func (s *Server) GetRequest(token string) irma.RequestorRequest
- func (s *Server) GetSessionResult(token string) *server.SessionResult
- func (s *Server) HandleProtocolMessage(path string, method string, headers map[string][]string, message []byte) (int, []byte, *server.SessionResult)
- func (s *Server) StartSession(req interface{}) (*irma.Qr, string, error)
- func (s *Server) Stop()
- func (s *Server) SubscribeServerSentEvents(w http.ResponseWriter, r *http.Request, token string, requestor bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CancelSession ¶
func (*Server) GetRequest ¶
func (*Server) GetSessionResult ¶
func (s *Server) GetSessionResult(token string) *server.SessionResult
func (*Server) HandleProtocolMessage ¶
func (*Server) StartSession ¶
func (*Server) SubscribeServerSentEvents ¶
Click to show internal directories.
Click to hide internal directories.