Sha256: 1775bf868adefa841c74b6273a19705a0b030adf1f22dab02aee5a4878365d5e

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

# Daioikachan plugin for Fluentd

This plugin provides [ikachan](https://github.com/yappo/p5-App-Ikachan) compatible interface by Fluentd.

## Installation

Bundled with `daioikachan` gem.

## Configuration

```apache
<source>
  type daioikachan
  bind 127.0.0.1
  port 4979
  backlog 2048

  # optional Puma parameters
  min_threads 0
  max_threads 4
</source>
```

Receiving API post like below,

```
$ curl -d "channel=#channel&message=test message" http://localhost:4979/notice
```

emits an event as

```
notice.channel {"command":"notice","channel":"channel","message":"test message"}
```

## API

### /notice

Send `notice` message.

```
$ curl -d "channel=#channel&message=test message" http://localhost:4979/notice
```

### /privmsg

Send `privmsg` message.

```
$ curl -d "channel=#channel&message=test message" http://localhost:4979/privmsg
```

### /join

The server always returns 200, and ignored.

IRC client should automatically join to a channel on sending message.
Slack client does not require to join to a channel.

### /leave

The server always returns 200, and ignored.

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
daioikachan-0.0.9 README/in_daioikachan.md
daioikachan-0.0.8 README/in_daioikachan.md
daioikachan-0.0.7 README/in_daioikachan.md
daioikachan-0.0.6 README/in_daioikachan.md
daioikachan-0.0.5 README/in_daioikachan.md
daioikachan-0.0.4 README/in_daioikachan.md
daioikachan-0.0.3 README/in_daioikachan.md
daioikachan-0.0.2 README/in_daioikachan.md
daioikachan-0.0.1 README/in_daioikachan.md