Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
authenticate a request, return key if successful otherwise an error
func GenerateLnUrl ¶
generate an ln url string
func GenerateQrCode ¶
generate a qr code from an lnurl
Types ¶
type RequestStore ¶
type RequestStore interface { // store request data Set(name, value string) // get data Get(name string) string // remove from request store, return removed value Remove(name string) string }
store for reading/storing data into the client
type SessionData ¶
type SessionStore ¶
type SessionStore interface { // store session data Set(k1 string, value SessionData) // get data Get(k1 string) *SessionData // remove from session storage Remove(name string) *SessionData }
persistent store for authenticating users cross-request
Directories
¶
Path | Synopsis |
---|---|
integration provides a server example for integration tests actual tests are carried out in `example_test` in the `examples/` folder
|
integration provides a server example for integration tests actual tests are carried out in `example_test` in the `examples/` folder |
Click to show internal directories.
Click to hide internal directories.