Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentsItem ¶
type DocumentsItem struct {
RoutePath string `json:"routePath"`
}
type DocumentsResponse ¶
type DocumentsResponse struct {
Documents []DocumentsItem `json:"documents"`
}
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher(opts FetcherOpts) *Fetcher
func (*Fetcher) ListDocuments ¶
func (f *Fetcher) ListDocuments(ctx context.Context) (*DocumentsResponse, error)
type FetcherOpts ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(opts HandlerOpts) *Handler
func (*Handler) FullRevalidate ¶ added in v0.4.0
func (*Handler) ShutdownAndWait ¶
func (h *Handler) ShutdownAndWait()
type HandlerOpts ¶
type HandlerOpts struct { RevalidateToken string Revalidator *Revalidator Fetcher *Fetcher RevalidateBatchSize int }
type Revalidator ¶
type Revalidator struct {
// contains filtered or unexported fields
}
func NewRevalidator ¶
func NewRevalidator(opts RevalidatorOpts) *Revalidator
func (*Revalidator) Revalidate ¶
func (r *Revalidator) Revalidate(ctx context.Context, routePaths []string) error
type RevalidatorOpts ¶
Click to show internal directories.
Click to hide internal directories.