plugins

package
v0.0.0-...-e90f22d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderContentType string = "content-type"
View Source
const HeaderContentTypeApplicationJson = "application/json"
View Source
const HeaderKey string = "key"
View Source
const HeaderPartition string = "partition"
View Source
const HeaderPartitionAny int32 = -1
View Source
const HeaderTopic string = "topic"

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaMessageAttr

type KafkaMessageAttr struct {
	// contains filtered or unexported fields
}

type KafkaUpstream

type KafkaUpstream struct {
	// Embed the default plugin here,
	// so that we don't need to reimplement all the methods.
	plugin.Plugin
}

func (*KafkaUpstream) Filter

func (p *KafkaUpstream) Filter(conf interface{}, w http.ResponseWriter, r pkgHTTP.Request)

func (*KafkaUpstream) Name

func (p *KafkaUpstream) Name() string

func (*KafkaUpstream) ParseConf

func (p *KafkaUpstream) ParseConf(in []byte) (interface{}, error)

type KafkaUpstreamConf

type KafkaUpstreamConf struct {
	Conf         map[string]interface{} `json:"config"`
	JsonKey      string                 `json:"jsonkey"`
	Topic        string                 `json:"topic"`
	Partition    int32                  `json:"partition"`
	Key          string                 `json:"key"`
	HeaderPrefix string                 `json:"headerprefix"`
}

type KafkaUpstreamResponse

type KafkaUpstreamResponse struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
}

Jump to

Keyboard shortcuts

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