🚀 Socket Launch Week 🚀 Day 1: Introducing .NET Support in Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alex-savin/go-meater

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alex-savin/go-meater

v0.0.0-20230426131808-e3cb294e404b
Source
Go
Version published
Created
Source

Meater!Go

Is a simple API client to interact with MEATER Cloud REST API service (https://public-api.cloud.meater.com) via HTTP, written in Go

News

  • v1.0.0 First public release on April 25, 2023

Features

  • Simple and chainable methods for settings and request

Installation

# Go Modules
go get github.com/alex-savin/go-meater

Usage

The following samples will assist you to become as comfortable as possible with Meater!Go library.

// Import Meater!Go into your code and refer it as `meater`.
import "github.com/alex-savin/go-meater"

Create a new Meater connection

// Create a Meater API Client
client, _ := meater.New(
	meater.Username("username"),
	meater.Password("password"),
	meater.LogLevel("log"),
)

Looping over active probes

if len(client.GetProbes()) > 0 {
	for i, probe := range client.GetProbes() {
		fmt.Printf("PROBE #%d: %+v\n", i+1, probe)
		fmt.Printf("COOK  #%d: %+v\n", i+1, probe.Cook)
	}
} else {
    fmt.Print("No active probes are detected\n")
}

FAQs

Package last updated on 26 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts