xml

package module
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

README

Krakend XML

Enable XML encoding in the Lura Project

Documentation

For more details, check the auto-generated documentation: https://godoc.org/github.com/davron112/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