Documentation ¶
Index ¶
- func BuildAddress(ip string, port uint32) core.Address
- func BuildProtoStruct(value interface{}) *types.Struct
- func ConvertAddressToCidr(addr string) *core.CidrRange
- func ConvertGogoDurationToDuration(d *types.Duration) time.Duration
- func GetByAddress(listeners []*xdsapi.Listener, addr string) *xdsapi.Listener
- func MessageToStruct(msg proto.Message) *types.Struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAddress ¶
BuildAddress returns a SocketAddress with the given ip and port.
func BuildProtoStruct ¶
BuildProtoStruct builds a proto.Struct with the given value JSON encoded into a field called "value" in the struct.
func ConvertAddressToCidr ¶
ConvertAddressToCidr converts from string to CIDR proto
func ConvertGogoDurationToDuration ¶
ConvertGogoDurationToDuration converts from gogo proto duration to time.duration
func GetByAddress ¶
GetByAddress returns a listener by its address TODO(mostrowski): consider passing map around to save iteration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.