Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Domain string Path string Stream bool StatusCode int LatestLedger string Body string // NormalizedBody is body without parts that identify a single // server (ex. domain) and fields known to be different between // instances (ex. `result_meta_xdr`). NormalizedBody string }
func NewResponse ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func MakeRoute ¶
MakeRoute translates route with * wildcards into a regexp. It adds start/end of line asserts, changes * into any characters except when in used for lists (like /accounts/*) - in such case it ensures there is no more `/` characters. This is not ideal and requires checking routes in correct order but is enough for orbitr-cmp. More here: https://regex101.com/r/EhBRtS/1
Click to show internal directories.
Click to hide internal directories.