Skip to content
Snippets Groups Projects
types.go 551 B
// nolint:revive
package design

import . "goa.design/goa/v3/dsl"

var CacheGetRequest = Type("CacheGetRequest", func() {
	Field(1, "key", String)
	Field(2, "namespace", String)
	Field(3, "scope", String) // Initial implementation with a single scope
	Required("key", "namespace", "scope")
})

var CacheSetRequest = Type("CacheSetRequest", func() {
	Field(1, "data", Any)
	Field(2, "key", String)
	Field(3, "namespace", String)
	Field(4, "scope", String) // Initial implementation with a single scope
	Required("data", "key", "namespace", "scope")
})