clamav-rest/vendor/github.com/dutchcoders/go-clamd
2017-08-28 23:15:22 +03:00
..
examples vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00
.gitignore vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00
.travis.yml vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00
clamd.go vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00
conn.go vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00
LICENSE vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00
README.md vendor dependencies with 'dep' 2017-08-28 23:15:22 +03:00

go-clamd

Interface to clamd (clamav daemon). You can use go-clamd to implement virus detection capabilities to your application.

GoDoc Build Status

Examples

c := clamd.NewClamd("/tmp/clamd.socket")

reader := bytes.NewReader(clamd.EICAR)
response, err := c.ScanStream(reader, make(chan bool))

for s := range response {
    fmt.Printf("%v %v\n", s, err)
}

Contributions

Contributions are welcome.

Creators

Remco Verhoef

Code and documentation copyright 2011-2014 Remco Verhoef. Code released under the MIT license.