(keyPair *KeyPair)
| 413 | } |
| 414 | |
| 415 | func (p *Postgres) DeleteKey(keyPair *KeyPair) error { |
| 416 | res, err := p.DB.Exec(`UPDATE kite.key SET deleted_at = (now() at time zone 'utc') WHERE id = $1`, |
| 417 | keyPair.ID) |
| 418 | if err != nil { |
| 419 | return err |
| 420 | } |
| 421 | |
| 422 | _, err = res.RowsAffected() |
| 423 | return err |
| 424 | } |
| 425 | |
| 426 | func (p *Postgres) IsValid(public string) error { |
| 427 | // A valid key is currently a key that is not deleted. |
nothing calls this directly
no outgoing calls
no test coverage detected