config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidConfigError = errors.New("config cannot be nil")

Functions

This section is empty.

Types

type CnameRecordGenerator

type CnameRecordGenerator struct {
	RecordName   string
	RecordTarget string
}

CnameRecordGenerator is the required config to generate CNAME record verification method instructions.

func (*CnameRecordGenerator) Validate

func (c *CnameRecordGenerator) Validate() error

type HmlMetaTagGenerator

type HmlMetaTagGenerator struct {
	TagName string
	Code    string
}

HmlMetaTagGenerator is the required config to generate HTML Meta verification method instructions.

func (*HmlMetaTagGenerator) Validate

func (h *HmlMetaTagGenerator) Validate() error

type JsonGenerator

type JsonGenerator struct {
	FileName  string
	Attribute string
	Code      string
}

JsonGenerator is the required config to generate JSON verification method instructions.

func (*JsonGenerator) Validate

func (j *JsonGenerator) Validate() error

type TxtRecordGenerator

type TxtRecordGenerator struct {
	HostName             string // @ or the domain name to verify or unique generated code.
	RecordAttribute      string
	RecordAttributeValue string
}

TxtRecordGenerator is the required config to generate TXT record verification method instructions.

func (*TxtRecordGenerator) Validate

func (t *TxtRecordGenerator) Validate() error

type XmlGenerator

type XmlGenerator struct {
	FileName string
	RootName string
	Code     string
}

XmlGenerator is the required config to generate XML verification method instructions.

func (*XmlGenerator) ToXml

func (x *XmlGenerator) ToXml() string

func (*XmlGenerator) Validate

func (x *XmlGenerator) Validate() error

Jump to

Keyboard shortcuts

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