dns

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name          string         `json:"name"`
	Code          string         `json:"code"`
	Configuration *Configuration `json:"configuration,omitempty"`
	Links         *Links         `json:"links,omitempty"`
}

func GetProvider

func GetProvider(code string) (Config, bool)

func GetProvidersList

func GetProvidersList() []Config

func (*Config) CleanEnv

func (c *Config) CleanEnv()

func (*Config) SetEnv

func (c *Config) SetEnv(configuration Configuration) error

type Configuration

type Configuration struct {
	Credentials map[string]string `json:"credentials"`
	Additional  map[string]string `json:"additional"`
}
type Links struct {
	API      string `json:"api"`
	GoClient string `json:"go_client"`
}

Jump to

Keyboard shortcuts

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