dutchcoders / gogreynoise

Golang client for greynoise.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gogreynoise Go Report Card

Golang client for Greynoise.io. The client currently only implements /context, but it is easy to extend other features.

Usage

package greynoise

import (
        "fmt"
        "net"

        greynoise "github.com/dutchcoders/gogreynoise"
)

func ExampleExamples_output() {
        client, err := greynoise.New(
                greynoise.WithKey("{key}"),
        )
        if err != nil {
                panic(err.Error)
        }

        ip := net.ParseIP("8.8.8.8")
        result, err := client.Context(ip)
        if err != nil {
                panic(err.Error)
        }

        fmt.Printf("Actor: %s\n", result.Actor)
}

Contributors

Copyright and license

Code released under Apache License 2.0.

About

Golang client for greynoise.io

License:Other


Languages

Language:Go 100.0%