Documentation
¶
Overview ¶
Package commands provides all CLI subcommands for the bramble tool.
Index ¶
- func Execute() error
- func ParseAddress(s string) (uint32, error)
- type BroadcastResult
- type ChannelAddResult
- type ChannelStatusResult
- type LocationAddrResult
- type LocationContactResult
- type LocationSetConfigResult
- type PingResult
- type ProbeCommandResult
- type SendCommandResult
- type SetNameResult
- type StatusResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAddress ¶
ParseAddress parses a mesh address from a hex or decimal string. Accepts: "DEADBEEF", "0xDEADBEEF", "3735928559".
Types ¶
type BroadcastResult ¶
type BroadcastResult struct {
Text string `json:"text"`
Status string `json:"status"`
Channel int `json:"channel,omitempty"`
BroadcastID string `json:"broadcast_id,omitempty"`
Deliveries []bramble.BroadcastDelivery `json:"deliveries,omitempty"`
DeliveryWindowS int `json:"delivery_window_s,omitempty"`
DeliveryCount int `json:"delivery_count,omitempty"`
}
BroadcastResult is the JSON output for the broadcast command.
type ChannelAddResult ¶
ChannelAddResult is the JSON output for the channels add command.
type ChannelStatusResult ¶
ChannelStatusResult is the JSON output for channels remove/set-default commands.
type LocationAddrResult ¶
LocationAddrResult is the JSON output for location remove-contact/share-once commands.
type LocationContactResult ¶
type LocationContactResult struct {
Addr string `json:"addr"`
Tier string `json:"tier"`
Status string `json:"status"`
}
LocationContactResult is the JSON output for the location set-contact command.
type LocationSetConfigResult ¶
type LocationSetConfigResult struct {
Status string `json:"status"`
Location bramble.LocationConfig `json:"location"`
}
LocationSetConfigResult is the JSON output for the location set-config command.
type PingResult ¶
type PingResult struct {
Address string `json:"address"`
ProtocolVersion string `json:"protocol_version"`
Status string `json:"status"`
}
PingResult is the JSON output for the ping command.
type ProbeCommandResult ¶
type ProbeCommandResult struct {
ProbeID int `json:"probe_id"`
AckWindow int `json:"ack_window"`
Responses []bramble.ProbeResult `json:"responses,omitempty"`
}
ProbeCommandResult is the JSON output for the probe command.
type SendCommandResult ¶
type SendCommandResult struct {
Dest string `json:"dest"`
Text string `json:"text"`
Status string `json:"status"`
}
SendCommandResult is the JSON output for the send command.
type SetNameResult ¶
SetNameResult is the JSON output for the config set-name command.
type StatusResult ¶
type StatusResult struct {
Status string `json:"status"`
}
StatusResult is a generic status-only JSON output.