github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+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  }