// GetHostIDMetadata retrieves the host id from middleware metadata
// returns host id as string along with a boolean indicating presence of
// hostId on middleware metadata.
GetHostIDMetadata retrieves the host id from middleware metadata
returns host id as string along with a boolean indicating presence of
hostId on middleware metadata.
// GetHostIDMetadata retrieves the host id from middleware metadata // returns host id as string along with a boolean indicating presence of // hostId on middleware metadata .
func GetHostIDMetadata(metadata middleware.Metadata) (string, bool) {
	if !metadata.Has(hostID{}) {
		return "", false
	}
	v, ok := metadata.Get(hostID{}).(string)
	if !ok {
		return "", true
	}
	return v, true
}
func GetHostIDMetadata ( metadata middleware . Metadata ) ( string , bool ) { if ! metadata . Has ( hostID { } ) { return " " , false } v , ok := metadata . Get ( hostID { } ) . ( string ) if ! ok { return " " , true } return v , true }
GetHostIDMetadata retrieves the host id from middleware metadata
returns host id as string along with a boolean indicating presence of
hostId on middleware metadata.
GetHostIDMetadata retrieves the host id from middleware metadata returns host id as string along with a boolean indicating presence of hostId on middleware metadata .