Documentation ¶
Index ¶
- Constants
- Variables
- func Build(cmd *cobra.Command, args []string, isAppend bool)
- func CaptureAndDisplayTogether(r1 io.Reader, r2 io.Reader, offset int, label1 string, label2 string)
- func CaptureAndOutput(r io.Reader)
- func Execute()
- func GetBiome(org Organization) (map[string]interface{}, error)
- func GrabManyBlocks(sem *semaphore.Weighted, start int, end int) ([]string, error)
- func LoadBiomeAddress() error
- func LoadProfile() error
- func PadString(str string, target int) string
- type BuildStatus
- type Contract
- type Node
- type Organization
- type Profile
- type Spinner
- type SqlQueryRequestPayload
- type WebsocketConnection
- type WebsocketTransport
Constants ¶
View Source
const (
// VERSION is set during build
VERSION = "DEFAULT_VERSION"
)
Variables ¶
View Source
var (
ErrorMethodNotAllowed = errors.New("Method not allowed")
)
View Source
var RootCmd = &cobra.Command{ Use: "whiteblock", Version: VERSION, Short: "Create and test blockchains", Long: `This application will deploy a blockchain, create nodes, and allow those nodes to interact in the network. Documentation, usages, and exmaples can be found at https://docs.whiteblock.io/. To report an issue: https://github.com/whiteblock/cli/issues/new?assignees=&labels=&template=bug_report.md&title= `, }
Functions ¶
func CaptureAndDisplayTogether ¶
func CaptureAndDisplayTogether(r1 io.Reader, r2 io.Reader, offset int, label1 string, label2 string)
Display the contents of two readers, line by line, together
func CaptureAndOutput ¶
func GetBiome ¶ added in v1.8.17
func GetBiome(org Organization) (map[string]interface{}, error)
func GrabManyBlocks ¶ added in v1.8.17
func LoadBiomeAddress ¶
func LoadBiomeAddress() error
func LoadProfile ¶
func LoadProfile() error
Types ¶
type BuildStatus ¶
type Node ¶
type Node struct { ID string `json:"id"` TestNetID string `json:"testnetId"` Server int `json:"server"` LocalID int `json:"localId"` AbsoluteNum int `json:"absNum"` IP string `json:"ip"` Label string `json:"label"` Image string `json:"image"` Protocol string `json:"protocol"` PortMappings map[string]string `json:"portMappings,omitonempty"` }
type Organization ¶
type Profile ¶
type Profile struct { Id int `json:"id"` Organization Organization `json:"organization"` }
func GetProfileFromJwt ¶ added in v1.8.17
type SqlQueryRequestPayload ¶ added in v1.8.12
type SqlQueryRequestPayload struct {
Q string `json:"q"`
}
type WebsocketConnection ¶
type WebsocketConnection struct {
// contains filtered or unexported fields
}
func (*WebsocketConnection) Close ¶
func (wsc *WebsocketConnection) Close()
func (*WebsocketConnection) GetMessage ¶
func (wsc *WebsocketConnection) GetMessage() (message string, err error)
func (*WebsocketConnection) PingParams ¶
func (wsc *WebsocketConnection) PingParams() (interval, timeout time.Duration)
func (*WebsocketConnection) WriteMessage ¶
func (wsc *WebsocketConnection) WriteMessage(message string) error
type WebsocketTransport ¶
type WebsocketTransport struct { PingInterval time.Duration PingTimeout time.Duration ReceiveTimeout time.Duration SendTimeout time.Duration BufferSize int RequestHeader http.Header }
func GetDefaultWebsocketTransport ¶
func GetDefaultWebsocketTransport() *WebsocketTransport
* Returns websocket connection with default params
func (*WebsocketTransport) Connect ¶
func (wst *WebsocketTransport) Connect(url string) (conn transport.Connection, err error)
func (*WebsocketTransport) HandleConnection ¶
func (wst *WebsocketTransport) HandleConnection( w http.ResponseWriter, r *http.Request) (conn transport.Connection, err error)
func (*WebsocketTransport) Serve ¶
func (wst *WebsocketTransport) Serve(w http.ResponseWriter, r *http.Request)
* Websocket connection do not require any additional processing
Source Files ¶
- auto.go
- blockchainSpecifics.go
- build.go
- buildHelpers.go
- config.go
- console.go
- done.go
- exec.go
- export.go
- get.go
- getLogs.go
- gethCMD.go
- iperf.go
- jsonrpc.go
- kill.go
- lock.go
- login.go
- man.go
- miners.go
- netconfig.go
- ping.go
- profile.go
- remote.go
- restart.go
- root.go
- scp.go
- signal.go
- socketTransport.go
- spinner.go
- sql.go
- ssh.go
- store.go
- sync.go
- test.go
- transactions.go
- update.go
- version.go
- webhandler.go
Click to show internal directories.
Click to hide internal directories.