server

package
v0.0.0-...-60ae506 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BankCommand

func BankCommand(store *wallet.Store) cli.Command

BankCommand creates the bank command, returning to the user the current balance of all their local wallets

syntax: bank [full]

func CreateCommand

func CreateCommand(store *wallet.Store) cli.Command

CreateCommand creates the create command, allowing the user to create currency and deposit into the provided wallet

syntax: create ${KEY} ${AMOUNT} ${CURRENCY}

func NodeCommand

func NodeCommand(confChangeC chan<- raftpb.ConfChange, statusGetter func() (raft.Status, error)) cli.Command

NodeCommand creates the node command, allowing members of the cluster to add and remove nodes

syntax: node create|delete ${ID} [URL]

func SendCommand

func SendCommand(store *wallet.Store) cli.Command

SendCommand executes the send command, allowing the user to send currency from one of their wallets to another

syntax: send ${SRC} ${DST} ${AMOUNT} ${CURRENCY}

func StatusCommand

func StatusCommand(getStatus func() (raft.Status, error)) cli.Command

StatusCommand creates the status command which allows the user to access information about the status of the cluster.

syntax: status

Types

This section is empty.

Jump to

Keyboard shortcuts

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