Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
17
pkg/tmobtokengen/mock.go
Normal file
17
pkg/tmobtokengen/mock.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package tmobtokengen
|
||||
|
||||
type NewMockTokenGenerator struct {
|
||||
}
|
||||
|
||||
// ClientSecretAsAuthVal implements Generator.
|
||||
func (NewMockTokenGenerator) ClientSecretAsAuthVal() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// Generate implements Generator.
|
||||
func (NewMockTokenGenerator) Generate(ehts EHTSMap) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// An easy way to check that that a struct implements and interface before build time
|
||||
var _ Generator = NewMockTokenGenerator{}
|
||||
Reference in New Issue
Block a user