Help us shape the future of Go! Take the 2026 Go Developer Survey

xml

package module
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Krakend XML

Enable XML encoding in the KrakenD framework

Notice: this package requires KrakenD >= 0.4

Documentation

For more details, check the auto-generated documentation: https://godoc.org/github.com/devopsfaith/krakend-xml

Using it

Just register the module before parsing your config and everything will work smoothly

xml.Register()

Build the example

Go 1.8 is a requirement

$ make

Run

Running it as a common executable, logs are send to the stdOut and some options are available at the CLI

$ ./krakend_xml_example
Usage of ./krakend_xml_example:
  -c string
    	Path to the configuration filename (default "/etc/krakend/configuration.json")
  -d	Enable the debug
  -p int
    	Port of the service

Documentation

Index

Constants

View Source
const Name = "xml"

Name is the key for the xml encoding

Variables

This section is empty.

Functions

func CollectionDecoder

func CollectionDecoder(r io.Reader, v *map[string]interface{}) error

CollectionDecoder implements the Decoder interface over a collection

func Decoder

func Decoder(r io.Reader, v *map[string]interface{}) error

Decoder implements the Decoder interface

func NewDecoder

func NewDecoder(isCollection bool) func(io.Reader, *map[string]interface{}) error

NewDecoder return the right XML decoder

func Register

func Register() error

Register registers the xml decoder

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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