telebit/relay/api/domain_mapping.go

25 lines
470 B
Go
Raw Normal View History

2020-05-01 05:47:46 +00:00
package api
//DomainMapping --
type DomainMapping struct {
connection *Connection
domainName string
err int
connCh chan bool
}
//ConnCh -- Property
func (c *DomainMapping) ConnCh() chan bool {
return c.connCh
}
//NewDomainMapping -- Constructor
func NewDomainMapping(connection *Connection, domain string) (p *DomainMapping) {
p = new(DomainMapping)
p.connection = connection
p.domainName = domain
p.err = -1
p.connCh = make(chan bool)
return
}