StaticKey fulfills the SigningKeycache and EncryptionKeycache interfaces. Useful for testing.
| 156 | |
| 157 | // StaticKey fulfills the SigningKeycache and EncryptionKeycache interfaces. Useful for testing. |
| 158 | type StaticKey struct { |
| 159 | ID string |
| 160 | Key interface{} |
| 161 | } |
| 162 | |
| 163 | func (s StaticKey) SigningKey(_ context.Context) (string, interface{}, error) { |
| 164 | return s.ID, s.Key, nil |
nothing calls this directly
no outgoing calls
no test coverage detected