hcloud_dns

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2022 License: MIT Imports: 0 Imported by: 0

README

Hetzner DNS: a Go library for the Hetzner DNS API

Go Reference

Package dns is a library for the Hetzner DNS API.

The libraries documentation is available at Go Pkg, the public API documentation is available at dns.hetzner.com.

Example

package main

import (
	"context"
	"fmt"
	"log"

	"github.com/jobstoit/hetzner-dns-go/dns"
)

func main() {
	client := dns.NewClient(dns.WithToken("token"))

	record, _, err := client.Record.GetByID(context.Background(), "randomid")
	if err != nil {
		log.Fatalf("error retrieving record: %v\n", err)
	}

	fmt.Printf("record of type: '%s' found with value: %s", record.Type, record.Value)
}

Documentation

Overview

Package hcloud_dns an SDK for the Hetzner DNS API.

Read the API docs over on https://dns.hetzner.com/api-docs.

Directories

Path Synopsis
dns
Package dns an SDK for the Hetzner DNS API.
Package dns an SDK for the Hetzner DNS API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL