Documentation ¶
Index ¶
- Variables
- func Login(i *Instance, jsonStream io.Reader) (outStream io.Reader, err error)
- func Register(i *Instance, jsonStream io.Reader) (outStream io.Reader, err error)
- func RegisterAsync(i *Instance, jsonStream io.Reader) (outStream io.Reader, err error)
- func SetDefInstance(i *Instance)
- func SetDefInstanceOrigin(s string)
- type Instance
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Origin = "http://localhost"
)
Functions ¶
func Login ¶
Login reads CredentialAssertion JSON from the input stream and same time process it and outputs CredentialAssertionResponse JSON to output stream.
func Register ¶
Register reads CredentialCreation JSON from the input stream and same time process it and outputs CredentialCreationResponse JSON to output stream.
func RegisterAsync ¶ added in v0.1.51
RegisterAsync reads CredentialCreation JSON from the input stream and same time process it and outputs CredentialCreationResponse JSON to output stream.
func SetDefInstance ¶ added in v0.2.74
func SetDefInstance(i *Instance)
SetDefInstance sets default instance. Mostly for tests.
func SetDefInstanceOrigin ¶ added in v0.2.74
func SetDefInstanceOrigin(s string)
SetDefInstanceOrigin sets the Origin. Mostly for tests.
Types ¶
Click to show internal directories.
Click to hide internal directories.