Skip to content
Snippets Groups Projects
types.go 664 B
Newer Older
  • Learn to ignore specific revisions
  • // nolint:revive
    package design
    
    import . "goa.design/goa/v3/dsl"
    
    var CreateRequest = Type("CreateRequest", func() {
    	Field(1, "taskName", String, "Task name.")
    
    	Field(2, "data", Any, "Data contains JSON payload that will be used for task execution.")
    
    	Field(3, "cacheNamespace", String, "Cache key namespace.")
    	Field(4, "cacheScope", String, "Cache key scope.")
    
    	Required("taskName", "data")
    })
    
    var CreateResult = Type("CreateResult", func() {
    	Field(1, "taskID", String, "Unique task identifier.")
    	Required("taskID")
    })
    
    
    var TaskResultRequest = Type("TaskResultRequest", func() {
    	Field(1, "taskID", String, "Unique task identifier.")
    	Required("taskID")
    })