body_extractor

package
v0.6.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MessageArray = "MessageArray"
	StringArray  = "StringArray"
	String       = "String"
	Message      = "Message"
)

Variables

This section is empty.

Functions

func RunQuery

func RunQuery(msg *dynamic.Message, query []Query) (interface{}, error)

Types

type GRPCPayloadCompressionFormat

type GRPCPayloadCompressionFormat uint8

GRPCPayloadCompressionFormat tells by reading the first byte compressed or not

type GRPCPayloadHandler

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

func (GRPCPayloadHandler) Extract

func (b GRPCPayloadHandler) Extract(body *io.ReadCloser, protoIndex string) (interface{}, error)

type JSONPayloadHandler

type JSONPayloadHandler struct{}

func (JSONPayloadHandler) Extract

func (h JSONPayloadHandler) Extract(body *io.ReadCloser, key string) (interface{}, error)

type Query

type Query struct {
	Field    int    `json:"field"`
	DataType string `json:"data_type"`
}

func ParseQuery

func ParseQuery(query string) ([]Query, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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