Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingSinger committed Feb 4, 2020
1 parent 16e49e6 commit f2d54c8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion filter/access_key.go
Expand Up @@ -13,7 +13,7 @@ type AccessKeyPair struct {
Creator string `yaml:"creator" json:"creator,omitempty" property:"creator"`
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 {
Expand Down
1 change: 1 addition & 0 deletions filter/authenticator.go
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/apache/dubbo-go/protocol"
)

// Authenticator
type Authenticator interface {

// give a sign to request
Expand Down
1 change: 1 addition & 0 deletions filter/filter_impl/auth/accesskey_storage.go
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/apache/dubbo-go/protocol"
)

// DefaultAccesskeyStorage
// The default implementation of AccesskeyStorage
type DefaultAccesskeyStorage struct {
}
Expand Down
1 change: 1 addition & 0 deletions filter/filter_impl/auth/consumer_sign.go
Expand Up @@ -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 {
}
Expand Down
1 change: 1 addition & 0 deletions filter/filter_impl/auth/default_authenticator.go
Expand Up @@ -20,6 +20,7 @@ func init() {
extension.SetAuthenticator(constant.DEFAULT_AUTHENTICATOR, GetDefaultAuthenticator)
}

// DefaultAuthenticator
// The default implemetation of Authenticator
type DefaultAuthenticator struct {
}
Expand Down
1 change: 1 addition & 0 deletions filter/filter_impl/auth/provider_auth.go
Expand Up @@ -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 {
}
Expand Down

0 comments on commit f2d54c8

Please sign in to comment.