Documentation ¶
Index ¶
Constants ¶
View Source
const (
FlagHome = "home"
)
Variables ¶
View Source
var ( Version = "" DefaultListenURL = "http://127.0.0.1:26667" DefaultHomeDirectory = func() string { home, err := os.UserHomeDir() if err != nil { panic(err) } return filepath.Join(home, ".sentinel", "client") }() Denom = "udvpn" )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Setup bool `json:"setup"` Version uint64 `json:"version"` Chain struct { BroadcastMode string `json:"broadcast_mode"` GasAdjustment float64 `json:"gas_adjustment"` GasPrices string `json:"gas_prices"` Gas uint64 `json:"gas"` ID string `json:"id"` RPCAddress string `json:"rpc_address"` SimulateAndExecute bool `json:"simulate_and_execute"` } `json:"chain"` CORS struct { AllowedOrigins string `json:"allowed_origins"` } `json:"cors"` }
func (*Config) LoadFromPath ¶
func (*Config) SaveToPath ¶
func (*Config) WithDefaultValues ¶
type Error ¶
type ResponseWriter ¶
type ResponseWriter struct { http.ResponseWriter Status int Length int }
func NewResponseWriter ¶
func NewResponseWriter(w http.ResponseWriter) *ResponseWriter
func (*ResponseWriter) Header ¶
func (r *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (r *ResponseWriter) WriteHeader(status int)
type Status ¶
type Status struct { From string `json:"from"` ID uint64 `json:"id"` Name string `json:"name"` To string `json:"to"` }
func (*Status) LoadFromPath ¶
func (*Status) SaveToPath ¶
Click to show internal directories.
Click to hide internal directories.