Documentation
¶
Index ¶
- Variables
- func APICallOrDie(method, url string, in interface{}, out interface{})
- func CircuitDialer(skf func() (*servicekey.T, error), circuitf func() ([]*relayentry.T, error), ...) func(string, string) (net.Conn, error)
- func ContractInfo(fm fsdir.T) (ci *contractinfo.T, err error)
- func ContractURL(fm fsdir.T) *texturl.URL
- func GetContractInfo(cl *client.Client, sc *texturl.URL) (info *contractinfo.T, rl relaylist.T, err error)
- func JSONOrDie(w io.Writer, x interface{})
- func SaveContractInfo(fm fsdir.T, ci *contractinfo.T, rl relaylist.T) (err error)
- func TraceOrigin(err error, circ circuit.T) (r *relayentry.T)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAPIClient = func() *client.Client { cl := client.New(nil) cl.RetryOpt.Tries = 100 cl.RetryOpt.Interval = 150 * time.Millisecond cl.RetryOpt.Verbose = false return cl }()
Functions ¶
func APICallOrDie ¶ added in v0.6.0
func APICallOrDie(method, url string, in interface{}, out interface{})
func CircuitDialer ¶
func ContractInfo ¶ added in v0.6.0
func ContractInfo(fm fsdir.T) (ci *contractinfo.T, err error)
func GetContractInfo ¶
func JSONOrDie ¶ added in v0.6.0
NOTE: the intended usage of this function is that it should never fail if it does fail, that's an issue with the calling code
func SaveContractInfo ¶
func TraceOrigin ¶
func TraceOrigin(err error, circ circuit.T) (r *relayentry.T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.