Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type Plugin
- func (p *Plugin) Config() any
- func (p *Plugin) Handler(next http.Handler) http.Handler
- func (p *Plugin) Init() error
- func (p *Plugin) PostInit() error
- func (p *Plugin) RunFinalResponseStore(r *http.Request, state base.ResponseState) error
- func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
- func (p *Plugin) SetConfiguredZones(zones []appconfig.Zone)
- func (p *Plugin) SetPurgeRegistry(registry *Registry)
- func (p *Plugin) SetResourceContext(route resource.Route, service resource.Service)
- func (p *Plugin) Stop()
- type Registry
Constants ¶
View Source
const (
PurgeURI = "/apisix/plugin/graphql-proxy-cache/*"
)
Variables ¶
View Source
var ErrStoreIntentAlreadyConsumed = errors.New("graphql-proxy-cache store intent already consumed")
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
base.BasePlugin
// contains filtered or unexported fields
}
func (*Plugin) RunFinalResponseStore ¶
func (*Plugin) RunRequestPhase ¶
func (p *Plugin) RunRequestPhase(w http.ResponseWriter, r *http.Request) base.RequestPhaseResult
func (*Plugin) SetConfiguredZones ¶
SetConfiguredZones supplies the immutable generation-local proxy-cache zone snapshot before PostInit.
func (*Plugin) SetPurgeRegistry ¶
SetPurgeRegistry injects the purge registry owned by one HTTP generation.
func (*Plugin) SetResourceContext ¶
type Registry ¶
Registry owns GraphQL cache purge targets for one prepared HTTP generation.
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) PurgeHandler ¶
Click to show internal directories.
Click to hide internal directories.