-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpub.cabal
63 lines (56 loc) · 2.13 KB
/
pub.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Name: pub
Version: 3.0.0
Author: Parnell Springmeyer <parnell@digitalmentat.com>
Maintainer: Parnell Springmeyer <parnell@digitalmentat.com>
License: BSD3
License-File: LICENSE
Synopsis: Pipe stdin to a redis pub/sub channel
Category: Utility
Description:
<<https://travis-ci.org/ixmatus/pub.svg?branch=master>>
.
`pub` is an executable for piping data from stdin to a specified
Redis pub/sub channel.
.
A typical use for this tool is to tail a log file, match a specific
line with grep, and pipe it into Redis where multiple consumers can
do something different with each incoming log line:
.
> tail -F /var/log/somelogfile.log | grep "tracker.gps.parsed" | pub loglines
.
It also comes with a utility named `sub` for piping from a Redis
pub/sub channel to stdout:
.
> sub loglines | grep "somemsg"
Cabal-Version: >= 1.10
Build-Type: Simple
Data-Files:
LICENSE
README.md
Executable pub
Default-Language: Haskell2010
HS-Source-Dirs: pub
GHC-Options: -threaded -Wall -rtsopts -with-rtsopts=-N
Main-Is: Main.hs
Build-Depends:
base >= 4.9 && < 5
, bytestring >= 0.10.8.1 && < 0.11
, hedis >= 0.9.5 && < 1.0
, optparse-generic >= 1.1.5 && < 2.0
, pipes >= 4.1.9 && < 5.0
, pipes-bytestring >= 2.1.4 && < 3.0
, text >= 1.2.2.1 && < 2.0
Executable sub
Default-Language: Haskell2010
HS-Source-Dirs: sub
GHC-Options: -threaded -Wall -rtsopts -with-rtsopts=-N
Main-Is: Main.hs
Build-Depends:
base >= 4.9 && < 5
, bytestring >= 0.10.8.1 && < 0.11
, hedis >= 0.9.5 && < 1.0
, optparse-generic >= 1.1.5 && < 2.0
, text >= 1.2.2.1 && < 2.0
Source-Repository head
Type: git
Location: https://github.com/ixmatus/pub