https://github.com/rfizzle/darktrace
Darktrace API Client Library written in Golang
https://github.com/rfizzle/darktrace
Last synced: 4 months ago
JSON representation
Darktrace API Client Library written in Golang
- Host: GitHub
- URL: https://github.com/rfizzle/darktrace
- Owner: rfizzle
- License: mit
- Created: 2021-01-21T09:27:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T10:49:18.000Z (over 5 years ago)
- Last Synced: 2025-12-17T16:15:10.867Z (6 months ago)
- Language: Go
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security/authentication.go
Awesome Lists containing this project
README
# Darktrace API Library
[](https://github.com/rfizzle/darktrace)
A golang API library for Darktrace appliances.
## Table of Contents
- [Install](#install)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [Contributing](#contributing)
- [License](#license)
## Install
This project uses [go modules](https://golang.org/ref/mod)
You can install it locally by running:
```sh
$ go get github.com/rfizzle/darktrace
```
## Usage
Import the library into your project, setup the client, and call the API with valid parameters:
```go
package main
import (
"github.com/rfizzle/darktrace"
"log"
)
func main() {
client, err := darktrace.NewClient(
"https://darktrace.example.com",
"publicToken",
"privateToken",
)
if err != nil {
log.Fatal(err)
}
results, err := client.EventList(
darktrace.Param("pbid", "6000000053951"),
darktrace.Param("includetotalbytes", "true"),
)
if err != nil {
log.Fatal(err)
}
if len(results) > 0 {
return
}
return
}
```
## Maintainers
[@rfizzle](https://github.com/rfizzle)
## Contributing
Feel free to dive in! [Open an issue](https://github.com/rfizzle/darktrace/issues/new) or submit PRs.
## License
[MIT](LICENSE) © Coleton Pierson