聊聊dubbo-go的GenericFilter
序 本文主要研究一下dubbo-go的GenericFilter GenericFilter dubbo-go-v1.4.2/filter/filter_impl/generic_filter.go const ( // GENERIC //generic module name GENERIC = "generic" ) func init() { extension.SetFilter(GENERIC, GetGenericFilter) } // when do a generic invoke, struct need to be map // GenericFilter ... type GenericFilter struct{} GenericFilter的init方法设置了GetGenericFilter GetGenericFilter dubbo-go-v1.4.2/filter/filter_impl/generic_filter.go // GetGenericFilter ... func GetGenericFilter() filter.Filter { return &GenericFilter{} } GetGenericFilter方法创建了GenericFilter Invoke dubbo-go-v1.4.2/filter/filter