Documentation
¶
Overview ¶
Package bsbord adds the paid mobile-network reachability source to the country check.
Index ¶
Constants ¶
View Source
const ( Source = countryreach.SourceBsbord DefaultIntervalMin = 1440 MinIntervalMin = 60 MaxIntervalMin = 1440 DefaultCapCredits = 10000 // 100 RUB; one credit is one kopeck. MaxCapCredits = 1000000000 )
View Source
const (
DefaultBaseURL = "https://bsbord.com"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Store *store.Store
Vault *vault.Vault
StepUp func(context.Context) error
Country func(context.Context) string
Targets func(context.Context) ([]health.CountryTarget, error)
HTTPClient *http.Client
BaseURL string // tests supply an httptest URL; empty uses the production API host.
Edge bool
RoundLease func(ctx context.Context, name string, ttl time.Duration) bool
OnChange func(context.Context)
Log *slog.Logger
Now func() time.Time
}
Config configures Service. Store, Vault, StepUp and Targets are required.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.