Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: always use json for http requests/responses #92

Merged
merged 11 commits into from
Sep 24, 2024
172 changes: 0 additions & 172 deletions cmd/notary/main_test.go

This file was deleted.

14 changes: 7 additions & 7 deletions internal/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ type Database struct {
// A CertificateRequest struct represents an entry in the database.
// The object contains a Certificate Request, its matching Certificate if any, and the row ID.
type CertificateRequest struct {
ID int `json:"id"`
CSR string `json:"csr"`
Certificate string `json:"certificate"`
ID int
CSR string
Certificate string
}
type User struct {
ID int `json:"id"`
Username string `json:"username"`
Password string `json:"password,omitempty"`
Permissions int `json:"permissions"`
ID int
Username string
Password string
Permissions int
}

var ErrIdNotFound = errors.New("id not found")
Expand Down
Loading
Loading