Documentation
¶
Index ¶
- Constants
- Variables
- func CheckConfig(cfg *config.Config, opts CheckOptions, out io.Writer) error
- func DiffConfig(oldCfg, newCfg *config.Config, opts DiffOptions, out io.Writer) (bool, error)
- func RateLimitList(cfg *config.Config, opts RateLimitListOptions, out io.Writer) error
- func RateLimitReset(cfg *config.Config, opts RateLimitResetOptions, out io.Writer, ...) error
- func RateLimitStatus(cfg *config.Config, opts RateLimitStatusOptions, out io.Writer, ...) error
- func Seed(cfg *config.Config, opts SeedOptions, out io.Writer) error
- func Serve(cfg *config.Config, opts ServeOptions, out io.Writer) error
- func Test(cfg *config.Config, opts TestOptions, out io.Writer) (uint32, error)
- type CheckOptions
- type DiffOptions
- type RateLimitListOptions
- type RateLimitResetOptions
- type RateLimitStatusOptions
- type Reloader
- type SeedOptions
- type ServeOptions
- type TestFailure
- type TestOptions
- type TestSummary
Constants ¶
View Source
const ( DiffFormatText = "text" DiffFormatYAML = "yaml" DiffFormatJSON = "json" DiffFormatTable = "table" // The table format as a markdown pipe table DiffFormatMarkdown = "markdown" )
Variables ¶
View Source
var ErrTooManyFailures = errors.New("too many tiles failed to seed")
Functions ¶
func CheckConfig ¶
func DiffConfig ¶
func RateLimitList ¶ added in v0.14.0
Only reads the configuration, so it works with any store
func RateLimitReset ¶ added in v0.14.0
func RateLimitStatus ¶ added in v0.14.0
Types ¶
type CheckOptions ¶
type CheckOptions struct {
Echo bool
}
type DiffOptions ¶
type RateLimitListOptions ¶ added in v0.14.0
type RateLimitListOptions struct {
ratelimit.RuleFilter
JSON bool
}
type RateLimitResetOptions ¶ added in v0.14.0
type RateLimitStatusOptions ¶ added in v0.14.0
type Reloader ¶
type Reloader struct {
// contains filtered or unexported fields
}
Applies hot reloads one at a time, holding any that arrive before the server is ready
type SeedOptions ¶
type ServeOptions ¶
type TestFailure ¶
type TestOptions ¶
type TestSummary ¶
type TestSummary struct {
Failures []TestFailure `json:"failures"`
Tested int `json:"tested"`
Failed int `json:"failed"`
}
Click to show internal directories.
Click to hide internal directories.