controld

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidConfigCode = 40401
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolverConfig

type ResolverConfig struct {
	DOH   string `json:"doh"`
	Ctrld struct {
		CustomConfig string `json:"custom_config"`
	} `json:"ctrld"`
	Exclude []string `json:"exclude"`
}

ResolverConfig represents Control D resolver data.

func FetchResolverConfig

func FetchResolverConfig(uid, version string, cdDev bool) (*ResolverConfig, error)

FetchResolverConfig fetch Control D config for given uid.

type UtilityErrorResponse

type UtilityErrorResponse struct {
	ErrorField struct {
		Message string `json:"message"`
		Code    int    `json:"code"`
	} `json:"error"`
}

func (UtilityErrorResponse) Error

func (u UtilityErrorResponse) Error() string

Jump to

Keyboard shortcuts

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