pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package pkg includes the publicly available API for cloudflare-ddns-update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

The API includes all available endpoints

func NewAPI

func NewAPI(apiToken string, zoneName string, debug bool) (*API, error)

NewAPI creates a new API variable. apiToken is used for authentication to cloudflare and debug enables the request/response logger

func (API) DDNSUpdate

func (a API) DDNSUpdate(c *gin.Context)

DDNSUpdate is based on the Dyn v3 API and should be bound to GET /v3/update

Jump to

Keyboard shortcuts

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