func NewDNSPodClient(addr string, apiToken string) *DNSPodClient { connection := rpc.NewClient(NewDNSPODAnalyzer()) return &DNSPodClient{ loginToken: apiToken, addr: addr, conn: connection, } }
func NewClient(host string, port int) *Client { connection := rpc.NewClient(rpc.H2OAnalyser{}) clt := &Client{ addr: fmt.Sprintf("%s:%d", host, port), conn: connection, } return clt }
func NewDNSPodClient(addr string, cache Cache) *DNSPodClient { connection := rpc.NewClient(NewDNSPODAnalyzer()) return &DNSPodClient{ cache: cache, addr: addr, conn: connection, } }
func NewClient(addr string) *Client { connection := rpc.NewClient(rpc.H2OAnalyser{}) clt := &Client{ addr: addr, conn: connection, } return clt }
func NewClient(workdir string, host string, port int) *Client { connection := rpc.NewClient(Analyser{}) cli := &Client{ workdir: workdir, addr: fmt.Sprintf("%s:%d", host, port), conn: connection, } return cli }