source

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domains

type Domains struct {
	// contains filtered or unexported fields
}

Domains struct represents a map of all domains supported by pages. It is currently reading them from disk.

func NewDomains

func NewDomains() *Domains

NewDomains is a factory method for domains initializing a mutex. It should not initialize `dm` as we later check the readiness by comparing it with a nil value.

func (*Domains) GetDomain

func (d *Domains) GetDomain(host string) *domain.Domain

GetDomain returns a domain from the domains map

func (*Domains) HasDomain

func (d *Domains) HasDomain(host string) bool

HasDomain checks for presence of a domain in the domains map

func (*Domains) Ready

func (d *Domains) Ready() bool

Ready checks if the domains source is ready for work

func (*Domains) Watch

func (d *Domains) Watch(rootDomain string)

Watch starts the domain source, in this case it is reading domains from groups on disk concurrently

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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