Skip to content

Commit

Permalink
mv Accesskey into auth_ext.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingSinger committed Jan 27, 2020
1 parent 30d2e1e commit 8f179d9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
10 changes: 0 additions & 10 deletions filter/accesskey.go

This file was deleted.

24 changes: 24 additions & 0 deletions filter/auth_ext.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package filter

import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/protocol"
)

type AccessKeyPair struct {
AccessKey string `yaml:"accessKey" json:"accessKey,omitempty" property:"accessKey"`
SecretKey string `yaml:"secretKey" json:"secretKey,omitempty" property:"secretKey"`
ConsumerSide string `yaml:"consumerSide" json:"ConsumerSide,consumerSide" property:"consumerSide"`
ProviderSide string `yaml:"providerSide" json:"providerSide,omitempty" property:"providerSide"`
Creator string `yaml:"creator" json:"creator,omitempty" property:"creator"`
Options string `yaml:"options" json:"options,omitempty" property:"options"`
}

type Authenticator interface {
Sign(protocol.Invocation, *common.URL) error
Authenticate(protocol.Invocation, *common.URL) error
}

type AccesskeyStorage interface {
GetAccesskeyPair(protocol.Invocation, *common.URL) *AccessKeyPair
}
15 changes: 0 additions & 15 deletions filter/auth_spi.go

This file was deleted.

0 comments on commit 8f179d9

Please sign in to comment.