Skip to content

dutchcoders/gomisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomisp Go Report Card

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

Copyright and license

Code released under Apache License 2.0.

About

Golang client for interfacing with MISP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages