Documentation ¶
Index ¶
Constants ¶
View Source
const CreateSessionRoute = servicePrefix + "CreateSession"
CreateSessionRoute is the RPC to create a session.
View Source
const DropSessionRoute = servicePrefix + "DropSession"
DropSessionRoute is the RPC to create a session.
View Source
const StatusRoute = servicePrefix + "Status"
StatusRoute is the RPC to inquiry the status of the wallet.
Variables ¶
View Source
var OpenRoutes = hashset.New()
OpenRoutes is the set of RPC that do not require session authentication.
Functions ¶
This section is empty.
Types ¶
type AuthToken ¶ added in v0.4.0
type AuthToken struct { AccessToken string `json:"access-token"` Time int64 `json:"time"` Sig []byte `json:"signature,omitempty"` }
AuthToken is what we put in the authorization header.
func (*AuthToken) AsSignable ¶ added in v0.4.0
AsSignable returns the signable payload of the struct.
Click to show internal directories.
Click to hide internal directories.