cmd
docs
pkg
api
cmds
datastore
internal
model
nats.go
page.go
policy.go
script.go
submission.go
service
service_internal
validation
web
.drone.yml
.gitignore
Cargo.lock
Cargo.toml
Containerfile
LICENSE
Makefile
README.md
compose.yaml
generate.go
go.mod
go.sum
openapi-internal.yaml
openapi.yaml
30 lines
643 B
Go
30 lines
643 B
Go
package model
|
|
|
|
// These represent the information needed in the nats message
|
|
// to perform the operation, they are encoded to json
|
|
|
|
// Requests are sent from maps-service to validator
|
|
|
|
type ValidateRequest struct {
|
|
// submission_id is passed back in the response message
|
|
SubmissionID int64
|
|
ModelID int64
|
|
ModelVersion int64
|
|
ValidatedModelID int64 // optional value
|
|
}
|
|
|
|
// Create a new map
|
|
type PublishNewRequest struct {
|
|
SubmissionID int64
|
|
ModelID int64
|
|
ModelVersion int64
|
|
ModelName string
|
|
}
|
|
|
|
type PublishFixRequest struct {
|
|
SubmissionID int64
|
|
ModelID int64
|
|
ModelVersion int64
|
|
TargetAssetID int64
|
|
}
|