https://github.com/dutchcoders/gomisp
Golang client for interfacing with MISP
https://github.com/dutchcoders/gomisp
Last synced: 10 months ago
JSON representation
Golang client for interfacing with MISP
- Host: GitHub
- URL: https://github.com/dutchcoders/gomisp
- Owner: dutchcoders
- License: other
- Created: 2018-08-18T07:23:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T07:30:50.000Z (over 7 years ago)
- Last Synced: 2025-01-14T12:19:00.284Z (11 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gomisp [](http://godoc.org/github.com/dutchcoders/gomisp) [](https://goreportcard.com/report/dutchcoders/gomisp)
Golang client for MISP. The client currently only implements search, but it is easy to extend other features.
## Usage
```
package misp
import (
"fmt"
misp "github.com/dutchcoders/gomisp"
)
func ExampleExamples_output() {
client, err := misp.New(
misp.WithURL("{url}"),
misp.WithKey("{key}"),
)
if err != nil {
panic(err.Error)
}
qry := misp.NewSearchRequest().Value(so.Query).From(time.Now().Add(time.Hour * 24 * 365 * -1)).To(time.Now())
result, err := client.Search(qry)
if err != nil {
panic(err)
}
fmt.Printf("Search results: %s\n", result)
}
```
## Contributors
* [Remco Verhoef](https://twitter.com/remco_verhoef)
## Copyright and license
Code released under [Apache License 2.0](LICENSE).