servercore

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePath

func ParsePath(path string) (string, string, error)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(conf *server.Configuration) (*Server, error)

func (*Server) CancelSession

func (s *Server) CancelSession(token string) error

func (*Server) GetRequest

func (s *Server) GetRequest(token string) irma.RequestorRequest

func (*Server) GetSessionResult

func (s *Server) GetSessionResult(token string) *server.SessionResult

func (*Server) HandleProtocolMessage

func (s *Server) HandleProtocolMessage(
	path string,
	method string,
	headers map[string][]string,
	message []byte,
) (int, []byte, *server.SessionResult)

func (*Server) StartSession

func (s *Server) StartSession(req interface{}) (*irma.Qr, string, error)

func (*Server) Stop

func (s *Server) Stop()

func (*Server) SubscribeServerSentEvents

func (s *Server) SubscribeServerSentEvents(w http.ResponseWriter, r *http.Request, token string, requestor bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL