github.com/jasonkeene/cli@v6.14.1-0.20160816203908-ca5715166dfb+incompatible/cf/models/domain.go (about)

     1  package models
     2  
     3  type DomainFields struct {
     4  	GUID                   string
     5  	Name                   string
     6  	OwningOrganizationGUID string
     7  	RouterGroupGUID        string
     8  	RouterGroupType        string
     9  	Shared                 bool
    10  }
    11  
    12  func (model DomainFields) URLForHostAndPath(host, path string, port int) string {
    13  	return (&RoutePresenter{
    14  		Host:   host,
    15  		Domain: model.Name,
    16  		Path:   path,
    17  		Port:   port,
    18  	}).URL()
    19  }