func init() { host, err := transport.NewHostLocator("127.0.0.1") if err != nil { log.Fatal(err) } localhost = host oneHost = SimplePlacement(transport.Locators{host}) }
func (h *HttpTransport) LocatorFor(value string) (transport.Locator, error) { return transport.NewHostLocator(value) }