diff --git a/filter/access_key.go b/filter/access_key.go index ee2fb919e26d09547a3062b30ef0df2552eb4e60..c9bdd4ff8993d51e4d5002a1216225e2da074df5 100644 --- a/filter/access_key.go +++ b/filter/access_key.go @@ -14,6 +14,7 @@ type AccessKeyPair struct { Options string `yaml:"options" json:"options,omitempty" property:"options"` } +// AccessKeyStorage // This SPI Extension support us to store our AccessKeyPair or load AccessKeyPair from other // storage, such as filesystem. type AccessKeyStorage interface { diff --git a/filter/authenticator.go b/filter/authenticator.go index dcb062133d69fed8dd41b7d983c1bc1e82793688..f969769bca09197ca518761120fb525d3444e74d 100644 --- a/filter/authenticator.go +++ b/filter/authenticator.go @@ -5,6 +5,7 @@ import ( "github.com/apache/dubbo-go/protocol" ) +// Authenticator type Authenticator interface { // give a sign to request diff --git a/filter/filter_impl/auth/accesskey_storage.go b/filter/filter_impl/auth/accesskey_storage.go index 0d50174aadf17005f6ab185caaa639937e9dfc86..4495c9cc417a98b5ba451c4cd980c02bd2b9cb24 100644 --- a/filter/filter_impl/auth/accesskey_storage.go +++ b/filter/filter_impl/auth/accesskey_storage.go @@ -8,6 +8,7 @@ import ( "github.com/apache/dubbo-go/protocol" ) +// DefaultAccesskeyStorage // The default implementation of AccesskeyStorage type DefaultAccesskeyStorage struct { } diff --git a/filter/filter_impl/auth/consumer_sign.go b/filter/filter_impl/auth/consumer_sign.go index 8e4c882134b682f3d89376333c636e171871b86e..be86b5c74bb9fd02b96483edb18571d47d205ee7 100644 --- a/filter/filter_impl/auth/consumer_sign.go +++ b/filter/filter_impl/auth/consumer_sign.go @@ -12,6 +12,7 @@ import ( "github.com/apache/dubbo-go/protocol" ) +// ConsumerSignFilter // This filter is working for signing the request on consumer side type ConsumerSignFilter struct { } diff --git a/filter/filter_impl/auth/default_authenticator.go b/filter/filter_impl/auth/default_authenticator.go index cc0e2606b30af8b8891de04b9b715f0086336cbe..20c3b64b1d23d1e5285a43d37a0d906932026070 100644 --- a/filter/filter_impl/auth/default_authenticator.go +++ b/filter/filter_impl/auth/default_authenticator.go @@ -20,6 +20,7 @@ func init() { extension.SetAuthenticator(constant.DEFAULT_AUTHENTICATOR, GetDefaultAuthenticator) } +// DefaultAuthenticator // The default implemetation of Authenticator type DefaultAuthenticator struct { } diff --git a/filter/filter_impl/auth/provider_auth.go b/filter/filter_impl/auth/provider_auth.go index f4dbcf44365ca49a6cc7e8766bbfc513fe186343..90804934f6b01a61f021f61f4ee549d744ccee72 100644 --- a/filter/filter_impl/auth/provider_auth.go +++ b/filter/filter_impl/auth/provider_auth.go @@ -9,6 +9,7 @@ import ( "github.com/apache/dubbo-go/protocol" ) +// ProviderAuthFilter // This filter is used to verify the correctness of the signature on provider side type ProviderAuthFilter struct { }