warmup

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreCachables

type PreCachables func(ctx context.Context, method, matchingURI string) ([]*view.View, error)

type PreCached

type PreCached struct {
	View      string
	Elapsed   string
	TimeTaken time.Duration
	Rows      int
}

type Response

type Response struct {
	Error     string       `json:"error,omitempty"`
	Status    string       `json:"status"`
	PreCached []*PreCached `json:"preCached"`
}

func PreCache

func PreCache(ctx context.Context, lookup PreCachables, warmupURIs ...string) *Response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL