attribute

package
v0.6.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose(attribute string, attrs map[string]interface{}) string

Types

type Attribute

type Attribute struct {
	Key    string        `yaml:"key" mapstructure:"key"`
	Type   AttributeType `yaml:"type" mapstructure:"type"`
	Index  string        `yaml:"index" mapstructure:"index"` // proto index
	Path   string        `yaml:"path" mapstructure:"path"`
	Params []string      `yaml:"params" mapstructure:"params"`
	Source string        `yaml:"source" mapstructure:"source"`
	Value  string        `yaml:"value" mapstructure:"value"`
}

type AttributeType

type AttributeType string
const (
	TypeJSONPayload AttributeType = "json_payload"
	TypeGRPCPayload AttributeType = "grpc_payload"
	TypeQuery       AttributeType = "query"
	TypeHeader      AttributeType = "header"
	TypePathParam   AttributeType = "path_param"
	TypeConstant    AttributeType = "constant"
	TypeComposite   AttributeType = "composite"

	SourceRequest  AttributeType = "request"
	SourceResponse AttributeType = "response"
)

Jump to

Keyboard shortcuts

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