cache

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cache contains a specialized client for interacting with PowerDNS' "Cache" API.

More information

Official API documentation: https://doc.powerdns.com/authoritative/http-api/cache.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Flush flush a cache-entry by name
	Flush(ctx context.Context, serverID string, name string) (*FlushResult, error)
}

Client defines the interface for Cache operations.

func New

func New(hc *pdnshttp.Client) Client

New creates a new Cache client

type FlushResult

type FlushResult struct {
	Count  int    `json:"count"`
	Result string `json:"result"`
}

FlushResult represent the result of a cache-flush.

Jump to

Keyboard shortcuts

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