Documentation ¶
Index ¶
- func AddNewKeyRequestHandler(indent bool) http.HandlerFunc
- func DeleteKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- func GetKeyRequestHandler(indent bool) http.HandlerFunc
- func MarshalJSON(o interface{}) ([]byte, error)
- func QueryKeysRequestHandler(indent bool) http.HandlerFunc
- func RecoverRequestHandler(indent bool) http.HandlerFunc
- func RegisterRoutes(r *mux.Router, indent bool)
- func SeedRequestHandler(indent bool) http.HandlerFunc
- func UnmarshalJSON(bz []byte, ptr interface{}) error
- func UpdateKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- type DeleteKeyBody
- type NewKeyBody
- type RecoverKeyBody
- type UpdateKeyBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNewKeyRequestHandler ¶
func AddNewKeyRequestHandler(indent bool) http.HandlerFunc
AddNewKeyRequestHandler performs create or recover new keys operation
func DeleteKeyRequestHandler ¶
func DeleteKeyRequestHandler(w http.ResponseWriter, r *http.Request)
delete key REST handler
func GetKeyRequestHandler ¶
func GetKeyRequestHandler(indent bool) http.HandlerFunc
get key REST handler
func QueryKeysRequestHandler ¶
func QueryKeysRequestHandler(indent bool) http.HandlerFunc
query key list REST handler
func RecoverRequestHandler ¶ added in v0.7.0
func RecoverRequestHandler(indent bool) http.HandlerFunc
RecoverRequestHandler performs key recover request
func SeedRequestHandler ¶ added in v0.7.0
func SeedRequestHandler(indent bool) http.HandlerFunc
Seed REST request handler
func UpdateKeyRequestHandler ¶
func UpdateKeyRequestHandler(w http.ResponseWriter, r *http.Request)
update key REST handler
Types ¶
type DeleteKeyBody ¶
type DeleteKeyBody struct {
Password string `json:"password"`
}
delete key request REST body
type NewKeyBody ¶
type NewKeyBody struct { Name string `json:"name"` Password string `json:"password"` Seed string `json:"seed"` }
NewKeyBody - the request body for create or recover new keys
type RecoverKeyBody ¶ added in v0.7.0
RecoverKeyBody is recover key request REST body
type UpdateKeyBody ¶
type UpdateKeyBody struct { NewPassword string `json:"new_password"` OldPassword string `json:"old_password"` }
update key request REST body
Click to show internal directories.
Click to hide internal directories.