Skip to content

how is the plan to implement the panic("implement me") functions in filter.go of golang network filter ? #39040

Open
@tanguofu

Description

@tanguofu

there is many function in : https://github.com/envoyproxy/examples/blob/main/golang-network/simple/filter.go

func (n *connectionCallback) DownstreamLocalAddress() string {
	panic("implement me")
}

func (n *connectionCallback) DownstreamRemoteAddress() string {
	panic("implement me")
}

and this functions also used in demo : https://github.com/envoyproxy/examples/blob/main/golang-network/simple/filter.go

func (f *downFilter) OnNewConnection() api.FilterStatus {
	localAddr, _ := f.cb.StreamInfo().UpstreamLocalAddress()
	remoteAddr, _ := f.cb.StreamInfo().UpstreamRemoteAddress()

so how is the plan to implement this functions?
is there some hack to get the localAddr remoteAddr.
many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions