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 e16d391
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions filter/access_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions filter/authenticator.go
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 e16d391

Please sign in to comment.