Documentation ¶
Index ¶
Constants ¶
View Source
const HTTPPath = "/.well-known/horizon/hubs.json"
Variables ¶
View Source
var ErrBadServer = errors.New("bad server")
Functions ¶
This section is empty.
Types ¶
type DiscoveryData ¶
type DiscoveryData struct { ServerTime time.Time `json:"server_time"` Hubs []*pb.NetworkLocation `json:"hubs"` }
type GetNetlocs ¶
type GetNetlocs interface {
GetAllNetworkLocations() ([]*pb.NetworkLocation, error)
}
type HubConfig ¶
type HubConfig struct { Addr string Name string Insecure bool PinnedCert *x509.Certificate }
type HubConfigProvider ¶
func HubConfigs ¶
func HubConfigs(cfg ...HubConfig) HubConfigProvider
type HubConnectDetails ¶
type HubConnectDetails interface { Address() string InsecureTLS() bool X509Cert() *x509.Certificate }
type StaticHubConfigs ¶
type StaticHubConfigs struct {
// contains filtered or unexported fields
}
func (*StaticHubConfigs) Return ¶
func (h *StaticHubConfigs) Return(cfg HubConfig)
type WellKnown ¶
type WellKnown struct { L hclog.Logger GetNetlocs GetNetlocs }
Click to show internal directories.
Click to hide internal directories.