commands

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2017 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BytomcliCmd = &cobra.Command{
	Use:   "bytomcli",
	Short: "Bytomcli is a commond line client for bytom core (a.k.a. bytomd)",
	Run: func(cmd *cobra.Command, args []string) {
		if len(args) < 1 {
			cmd.Usage()
		}
	},
}

BytomcliCmd is Bytomcli's root command. Every other command attached to BytomcliCmd is a child command to it.

Functions

func AddCommands

func AddCommands()

AddCommands adds child commands to the root command BytomcliCmd.

func Execute

func Execute()

Execute adds all child commands to the root command BytomcliCmd and sets flags appropriately.

Types

type AssetIns

type AssetIns struct {
	RootXPubs   []chainkd.XPub         `json:"root_xpubs"`
	Quorum      int                    `json:"quorum"`
	Alias       string                 `json:"alias"`
	Tags        map[string]interface{} `json:"tags"`
	Definition  map[string]interface{} `json:"definition"`
	ClientToken string                 `json:"client_token"`
}

AssetIns is used for asset related request.

type Ins

type Ins struct {
	RootXPubs   []chainkd.XPub         `json:"root_xpubs"`
	Quorum      int                    `json:"quorum"`
	Alias       string                 `json:"alias"`
	Tags        map[string]interface{} `json:"tags"`
	ClientToken string                 `json:"client_token"`
}

Ins is used for account related request.

type Token

type Token struct {
	ID      string    `json:"id,omitempty"`
	Token   string    `json:"token,omitempty"`
	Type    string    `json:"type,omitempty"`
	Secret  string    `json:"secret,omitempty"`
	Created time.Time `json:"created_at,omitempty"`
}

Token describe the access token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL