webfan

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

README

WEBFAN

Example

input{
  webhook{
        uri => "toto/titi"
        pipeline=> "test.conf"
        codec => plain{
            role => "decoder"
        }
        codec => plain{
            role => "encoder"
            format=> "<h1>Hello {{.request.querystring.name}}</h1>"
        }
        headers => {
            "Content-Type" => "text/html"
        }
    }
}

Synopsys

SETTING TYPE REQUIRED DEFAULT VALUE
Codec codec false ?
uri string true ""
pipeline string true ""
headers hash false {}

Details

Codec
  • Value type is codec
  • Default value is ?

The codec used for posted data. Input codecs are a convenient method for decoding your data before it enters the pipeline, without needing a separate filter in your bitfan pipeline

Default decode http request as plain text, response is json encoded. Set multiple codec with role to customize

uri
  • This is a required setting.
  • Value type is string
  • Default value is ""

URI path /_/path

pipeline
  • This is a required setting.
  • Value type is string
  • Default value is ""

Path to pipeline's configuration to execute on request This configuration should contains only a filter section an a output like output{pass{}}

headers
  • Value type is hash
  • Default value is {}

Headers to send back into outgoing response

Configuration blueprint

webfan{
	codec => plain { role=>"encoder"} codec => json { role=>"decoder"}
	uri => ""
	pipeline => ""
	{"X-Processor" => "bitfan"}
}

Documentation

Overview

Code generated by "bitfanDoc "; DO NOT EDIT

Example ```

input{
  webhook{
        uri => "toto/titi"
        pipeline=> "test.conf"
        codec => plain{
            role => "decoder"
        }
        codec => plain{
            role => "encoder"
            format=> "<h1>Hello {{.request.querystring.name}}</h1>"
        }
        headers => {
            "Content-Type" => "text/html"
        }
    }
}

```

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() processors.Processor

func NewPass

func NewPass() processors.Processor

Types

This section is empty.

Jump to

Keyboard shortcuts

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