cmd

package
v0.0.0-...-fd44b97 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNSAPI = "https://api.dynu.com/v2/dns/"
)
View Source
const (
	PINGURL = "https://api.dynu.com/v1/ping"
)
View Source
const (
	URL = "https://api.dynu.com/v2/oauth2/token"
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "godynu",
	Short: "CLI for the free dynamic DNS service Dynu.com"}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetToken

func GetToken() string

Types

type Ping

type Ping struct {
	Type    string // `json:"type"`
	Message string // `json:"message"`
}

type Token

type Token struct {
	Access_Token string // `json:"accessToken"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳