utils

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

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

Go to latest
Published: Feb 8, 2018 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLoggers

func InitLoggers(verbosity int) (err error)

InitLoggers initialize loggers

Types

type Config

type Config struct {
	Nameservers nameservers
	DnsAddr     string
	Domain      Domain
	TlsVerify   bool
	TlsCaCert   string
	TlsCert     string
	TlsKey      string
	HttpAddr    string
	Ttl         int
	CreateAlias bool
	Verbose     bool
	Quiet       bool
}

Config contains DNSDock configuration

func NewConfig

func NewConfig() *Config

NewConfig creates a new config

type Domain

type Domain []string

Domain represents a domain

func NewDomain

func NewDomain(s string) Domain

NewDomain creates a new domain

func (*Domain) String

func (d *Domain) String() string

type Entry

type Entry struct {
	RecordType string
	Value      string
	TTL        int
	Aliases    string
	Time       time.Time
}

func EntryPointerToEntry

func EntryPointerToEntry(s *Entry) Entry

type Service

type Service struct {
	RecordType string
	Value      string
	TTL        int
	Aliases    string
}

Service represents a container and an attached DNS record service(recode_type: "A",value: []string{"127.0.0.1","127.0.0.1"},Aliases: "www.duitang.net" ))

func BatchEntryToServer

func BatchEntryToServer(s *[]Entry) []Service

func EntryToServer

func EntryToServer(s *Entry) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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