All Projects → DNS-OARC → ripeatlas

DNS-OARC / ripeatlas

Licence: LGPL-3.0, GPL-3.0 licenses found Licenses found LGPL-3.0 COPYING.LESSER GPL-3.0 COPYING
Go bindings for RIPE Atlas API

Programming Languages

go
31211 projects - #10 most used programming language
perl
6916 projects
Makefile
30231 projects

Projects that are alternatives of or similar to ripeatlas

bound
Data-binding made easy
Stars: ✭ 21 (+75%)
Mutual labels:  bindings
bindingsrx
A 2 way binding system for unity using unirx
Stars: ✭ 109 (+808.33%)
Mutual labels:  bindings
OpenGL.NET
This repository contains low-level bindings for OpenGL and OpenGLES used in Evergine.
Stars: ✭ 29 (+141.67%)
Mutual labels:  bindings
lualite
a one header library for creating Lua bindings to C++
Stars: ✭ 76 (+533.33%)
Mutual labels:  bindings
Xamarin-iOS
PSPDFKit for iOS wrapper for the Xamarin platform.
Stars: ✭ 14 (+16.67%)
Mutual labels:  bindings
nuklear4j
Java binding for nuklear
Stars: ✭ 61 (+408.33%)
Mutual labels:  bindings
cairo
Package cairo provides full Go bindings for Cairo, a 2D graphics library.
Stars: ✭ 28 (+133.33%)
Mutual labels:  bindings
interop
Python/C/Go/Rust/Haskell interop examples
Stars: ✭ 24 (+100%)
Mutual labels:  bindings
go-wlroots
Go binding for wlroots
Stars: ✭ 92 (+666.67%)
Mutual labels:  bindings
x264-rs
x264 bindings
Stars: ✭ 32 (+166.67%)
Mutual labels:  bindings
x11-rs
Rust bindings for X11 libraries
Stars: ✭ 169 (+1308.33%)
Mutual labels:  bindings
fltk-rs
Rust bindings for the FLTK GUI library.
Stars: ✭ 929 (+7641.67%)
Mutual labels:  bindings
scala-native-bindgen
Scala Native Binding Generator
Stars: ✭ 29 (+141.67%)
Mutual labels:  bindings
Xamarin-Android
PSPDFKit for Android wrapper for the Xamarin platform.
Stars: ✭ 18 (+50%)
Mutual labels:  bindings
sn-bindgen
Scala 3 native binding generator + libclang facade
Stars: ✭ 29 (+141.67%)
Mutual labels:  bindings
node-tdlib
TDLib Binding with Telegram Bot API Reimplemention for Node.js
Stars: ✭ 35 (+191.67%)
Mutual labels:  bindings
crystal-autobind
Automatic C bindings generator for Crystal
Stars: ✭ 15 (+25%)
Mutual labels:  bindings
vsphere-automation-sdk-.net
[DEPRECATED] Please see README. C# samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
Stars: ✭ 67 (+458.33%)
Mutual labels:  bindings
simdjson-rust
Rust bindings for the simdjson project.
Stars: ✭ 59 (+391.67%)
Mutual labels:  bindings
webgl-raub
WebGL bindings to desktop OpenGL
Stars: ✭ 66 (+450%)
Mutual labels:  bindings

Go bindings for RIPE Atlas API

GoDoc

About

Go bindings for the RIPE Atlas API to retrieve measurements and other data, can read from JSON files or use the REST API. Will decode the data into Go objects and have helper functions to easily access the data within.

Atlaser

Atlaser is the interface to access RIPE Atlas and there are a few different ways to do so:

  • To read JSON files see File and examples/reader/main.go.
  • To use REST API see Http and examples/reader/main.go.
  • To use Streaming API see Stream and examples/streamer/main.go.

REST API

Implementation status of API calls described by https://atlas.ripe.net/docs/api/v2/reference/ .

anchor-measurements

anchors

credits

keys

measurements

Call Status Func
/api/v2/measurements/ HTTP only Atlaser.Measurements()
/api/v2/measurements/{pk} HTTP only Atlaser.Measurements()
/api/v2/measurements/{pk}/latest/ Done Atlaser.MeasurementLatest()
/api/v2/measurements/{pk}/results/ Done Atlaser.MeasurementResults()

participation-requests

probes

Call Status Func
/api/v2/probes/ HTTP only Atlaser.Probes()
/api/v2/probes/{pk} HTTP only Atlaser.Probes()

Objects

Implementation status of objects (by type) decribed by https://atlas.ripe.net/docs/data_struct/ .

Type Fireware Status
dns 4610 to 4760 Done
ping 4610 to 4760 Done
traceroute 4610 to 4760 Done
http 4610 to 4760 Done
ntp 4610 to 4760 Done
sslcert 4610 to 4760 Done
wifi 4610 to 4760 Done (undocumented by RIPE)

Usage

See or test more complete examples in the examples directory.

import (
    "fmt"
    "github.com/DNS-OARC/ripeatlas"
)

// Read Atlas results from a file
a := ripeatlas.Atlaser(ripeatlas.NewFile())
c, err := a.MeasurementResults(ripeatlas.Params{"file": name})
if err != nil {
    ...
}
for r := range c {
    if r.ParseError != nil {
        ...
    }
    fmt.Printf("%d %s\n", r.MsmId(), r.Type())
}

// Read Atlas results using REST API
a := ripeatlas.Atlaser(ripeatlas.NewHttp())
c, err := a.MeasurementResults(ripeatlas.Params{"pk": id})
if err != nil {
    ...
}
for r := range c {
    if r.ParseError != nil {
        ...
    }
    fmt.Printf("%d %s\n", r.MsmId(), r.Type())
}

// Read DNS measurements using Streaming API
a := ripeatlas.Atlaser(ripeatlas.NewStream())
c, err := a.MeasurementResults(ripeatlas.Params{"type": "dns"})
if err != nil {
    ...
}
for r := range c {
    if r.ParseError != nil {
        ...
    }
    fmt.Printf("%d %s\n", r.MsmId(), r.Type())
}

Author(s)

Jerry Lundström [email protected]

Copyright

Copyright (c) 2017, OARC, Inc. All rights reserved.

This file is part of ripeatlas.

ripeatlas is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ripeatlas is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with ripeatlas. If not, see http://www.gnu.org/licenses/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].