resolver

package
v0.0.0-...-19f3e22 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyIP = errors.New("IP address is empty")
	ErrParseIP = errors.New("Failed to parse IP address")
)
View Source
var (
	ErrParentNotFound = errors.New("Parent not found")
	ErrDuplicateRoot  = errors.New("Duplicate root detected")
)

Functions

func Initialize

func Initialize()

func RegisterRoutes

func RegisterRoutes(r *mux.Router)

func Synchronize

func Synchronize(path string, target Synchronized)

Types

type Case

type Case struct {
	ContentType string     `json:"mime"`
	Value       NullString `json:"value"`
	Server      string     `json:"server"`
	Group       string     `json:"group"`
	Datacenter  string     `json:"datacenter"`
	Service     string     `json:"service"`
}

type Param

type Param struct {
	ID          int
	Name        string
	Path        string
	MTime       string
	Version     int
	ContentType string
	Value       NullString
	Children    map[string]**Param
	// contains filtered or unexported fields
}

func (*Param) Strings

func (node *Param) Strings() ([]string, error)

type Server

type Server struct {
	Host       string
	IP         net.IP
	Datacenter string
}

type Synchronized

type Synchronized interface {
	Update(context.Context, *Param)
}

Jump to

Keyboard shortcuts

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