Documentation
¶
Index ¶
- Constants
- Variables
- func ConfiguredServiceKey(init bool, sigAlgo crypto.SignatureAlgorithm, hashAlgo crypto.HashAlgorithm) (crypto.PrivateKey, crypto.SignatureAlgorithm, crypto.HashAlgorithm)
- func Exitf(code int, msg string, args ...interface{})
- type SnapShotResult
- type SnapshotCommand
- type SnapshotFlag
- type SnapshotList
Constants ¶
View Source
const SnapshotEndpoint = "http://localhost:8080/emulator/snapshots"
Variables ¶
View Source
var Cmd *cobra.Command
Functions ¶
func ConfiguredServiceKey ¶
func ConfiguredServiceKey( init bool, sigAlgo crypto.SignatureAlgorithm, hashAlgo crypto.HashAlgorithm, ) ( crypto.PrivateKey, crypto.SignatureAlgorithm, crypto.HashAlgorithm, )
Types ¶
type SnapShotResult ¶ added in v0.48.0
type SnapShotResult struct {
Name string `json:"context"`
BlockID string `json:"blockId"`
Height uint64 `json:"height"`
Result string `json:"result,omitempty"`
}
func (*SnapShotResult) JSON ¶ added in v0.48.0
func (r *SnapShotResult) JSON() interface{}
func (*SnapShotResult) Oneliner ¶ added in v0.48.0
func (r *SnapShotResult) Oneliner() string
func (*SnapShotResult) String ¶ added in v0.48.0
func (r *SnapShotResult) String() string
type SnapshotCommand ¶ added in v0.48.0
type SnapshotCommand string
const ( SnapshotCommandList SnapshotCommand = "list" SnapshotCommandCreate SnapshotCommand = "create" SnapshotCommandLoad SnapshotCommand = "load" )
type SnapshotFlag ¶ added in v0.48.0
type SnapshotFlag struct{}
type SnapshotList ¶ added in v0.48.0
type SnapshotList struct {
Snapshots []string
}
func (*SnapshotList) JSON ¶ added in v0.48.0
func (s *SnapshotList) JSON() interface{}
func (*SnapshotList) Oneliner ¶ added in v0.48.0
func (s *SnapshotList) Oneliner() string
func (*SnapshotList) String ¶ added in v0.48.0
func (s *SnapshotList) String() string
Click to show internal directories.
Click to hide internal directories.