Skip to content
Snippets Groups Projects
Commit 854d797a authored by Ooo0oO0o0oO's avatar Ooo0oO0o0oO
Browse files

add some comments

parent 6d49a060
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ type AccessKeyPair struct { ...@@ -14,6 +14,7 @@ type AccessKeyPair struct {
Options string `yaml:"options" json:"options,omitempty" property:"options"` Options string `yaml:"options" json:"options,omitempty" property:"options"`
} }
// AccessKeyStorage
// This SPI Extension support us to store our AccessKeyPair or load AccessKeyPair from other // This SPI Extension support us to store our AccessKeyPair or load AccessKeyPair from other
// storage, such as filesystem. // storage, such as filesystem.
type AccessKeyStorage interface { type AccessKeyStorage interface {
......
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"github.com/apache/dubbo-go/protocol" "github.com/apache/dubbo-go/protocol"
) )
// Authenticator
type Authenticator interface { type Authenticator interface {
// give a sign to request // give a sign to request
......
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"github.com/apache/dubbo-go/protocol" "github.com/apache/dubbo-go/protocol"
) )
// DefaultAccesskeyStorage
// The default implementation of AccesskeyStorage // The default implementation of AccesskeyStorage
type DefaultAccesskeyStorage struct { type DefaultAccesskeyStorage struct {
} }
......
...@@ -12,6 +12,7 @@ import ( ...@@ -12,6 +12,7 @@ import (
"github.com/apache/dubbo-go/protocol" "github.com/apache/dubbo-go/protocol"
) )
// ConsumerSignFilter
// This filter is working for signing the request on consumer side // This filter is working for signing the request on consumer side
type ConsumerSignFilter struct { type ConsumerSignFilter struct {
} }
......
...@@ -20,6 +20,7 @@ func init() { ...@@ -20,6 +20,7 @@ func init() {
extension.SetAuthenticator(constant.DEFAULT_AUTHENTICATOR, GetDefaultAuthenticator) extension.SetAuthenticator(constant.DEFAULT_AUTHENTICATOR, GetDefaultAuthenticator)
} }
// DefaultAuthenticator
// The default implemetation of Authenticator // The default implemetation of Authenticator
type DefaultAuthenticator struct { type DefaultAuthenticator struct {
} }
......
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
"github.com/apache/dubbo-go/protocol" "github.com/apache/dubbo-go/protocol"
) )
// ProviderAuthFilter
// This filter is used to verify the correctness of the signature on provider side // This filter is used to verify the correctness of the signature on provider side
type ProviderAuthFilter struct { type ProviderAuthFilter struct {
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment