package
Version:
v0.0.0-...-07846f8
Opens a new window with list of versions in this module.
Published: Jun 10, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
RemoveToken removes the token from the tokensmap
type Receiver struct {
*Token
}
Receiver gets the secret from the supplier
RegisterReceiver creates a new receiver
type Token struct {
Uuid string
}
Token is used for handshaking a receiver and a supplier
NewToken creates a token object and returns it to the receiver
type WsMessage struct {
Status string `json:"status"`
TokenStr string `json:"token"`
Secret string `json:"secret"`
Passphrase bool `json:"key"`
}
WsMessage takes care of sending the message from supplier to receiver
TransferSecret ships the secret
Source Files
¶
Click to show internal directories.
Click to hide internal directories.