-
Notifications
You must be signed in to change notification settings - Fork 5
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
split types into rfc6962 and staticctapi #234
Conversation
# Conflicts: # internal/scti/handlers_test.go
# Conflicts: # internal/scti/handlers_test.go # Conflicts: # internal/scti/handlers_test.go
internal/hammer/loadtest/workers.go
Outdated
@@ -29,7 +29,7 @@ import ( | |||
"github.com/transparency-dev/merkle/proof" | |||
"github.com/transparency-dev/merkle/rfc6962" | |||
"github.com/transparency-dev/static-ct/internal/client" | |||
"github.com/transparency-dev/static-ct/internal/types" | |||
rfc69621 "github.com/transparency-dev/static-ct/internal/types/rfc6962" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rfc69621 "github.com/transparency-dev/static-ct/internal/types/rfc6962" | |
"github.com/transparency-dev/static-ct/internal/types/rfc6962" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I can't do this because of a different import, but I sorted this out.
internal/hammer/loadtest/workers.go
Outdated
@@ -246,7 +246,7 @@ func (w *LogWriter) Run(ctx context.Context) { | |||
|
|||
// TODO: Remove the json.Unmarshal by generating the chain and | |||
// marshaling the add chain request from w.gen() at a later stage. | |||
var req types.AddChainRequest | |||
var req rfc69621.AddChainRequest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var req rfc69621.AddChainRequest | |
var req rfc6962.AddChainRequest |
internal/hammer/loadtest/workers.go
Outdated
@@ -449,7 +449,7 @@ func isPreIssuer(cert *x509.Certificate) bool { | |||
// Look for the extension in the Extensions field and not ExtKeyUsage | |||
// since crypto/x509 does not recognize this extension as an ExtKeyUsage. | |||
for _, ext := range cert.Extensions { | |||
if types.OIDExtKeyUsageCertificateTransparency.Equal(ext.Id) { | |||
if rfc69621.OIDExtKeyUsageCertificateTransparency.Equal(ext.Id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if rfc69621.OIDExtKeyUsageCertificateTransparency.Equal(ext.Id) { | |
if rfc6962.OIDExtKeyUsageCertificateTransparency.Equal(ext.Id) { |
@@ -12,7 +12,7 @@ | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
|
|||
package types | |||
package staticctapi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
staticctapi
is a bit "letter soupy", how about just staticct
(or static-ct
)?
Should be ok particularly since we're planning to rename this repo to tesseract
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
is not recommended in Go Style Guide.
Go package names should be short and contain only lowercase letters. A package name composed of multiple words should be left unbroken in all lowercase.
Addressing #198 (review)