design

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArrayPrismMedia = MediaType("application/vnd.goadesign.examples.arrayprism", func() {
	Description("ArrayPrismMedia is a media type with one attribute per primitive type")
	Attributes(func() {
		Attribute("bool_att", Boolean, "Boolean attribute")
		Attribute("int_att", Integer, "Integer attribute")
		Attribute("num_att", Number, "Number attribute")
		Attribute("string_att", String, "String attribute")
		Attribute("date_time_att", DateTime, "DateTime attribute")
		Attribute("uuid_att", UUID, "UUID attribute")
		Attribute("any_att", Any, "Any attribute")
	})
	View("default", func() {
		Attribute("bool_att")
		Attribute("int_att")
		Attribute("num_att")
		Attribute("string_att")
		Attribute("date_time_att")
		Attribute("uuid_att")
		Attribute("any_att")
	})
})
View Source
var HashPrismMedia = MediaType("application/vnd.goadesign.examples.hashprism", func() {
	Description("HashPrismMedia is a media type with one hash member per primitive type: type as value, and string as key")
	Attributes(func() {
		Attribute("bool_val_hash", HashOf(String, Boolean), "Hash with Boolean value member")
		Attribute("int_val_hash", HashOf(String, Integer), "Hash with Integer value member")
		Attribute("num_val_hash", HashOf(String, Number), "Hash with Number value member")
		Attribute("string_val_hash", HashOf(String, String), "Hash with String value member")
		Attribute("date_time_val_hash", HashOf(String, DateTime), "Hash with DateTime value member")
		Attribute("uuid_val_hash", HashOf(String, UUID), "Hash with UUID value member")
		Attribute("any_val_hash", HashOf(String, Any), "Hash with Any value member")
	})
	View("default", func() {
		Attribute("bool_val_hash")
		Attribute("int_val_hash")
		Attribute("num_val_hash")
		Attribute("string_val_hash")
		Attribute("date_time_val_hash")
		Attribute("uuid_val_hash")
		Attribute("any_val_hash")
	})
})
View Source
var PrismMedia = MediaType("application/vnd.goadesign.examples.prism", func() {
	Description("Prism media is a media type with ie attribute per primitive type")
	Attributes(func() {
		Attribute("bool_att", Boolean, "Boolean attribute")
		Attribute("int_att", Integer, "Integer attribute")
		Attribute("num_att", Number, "Number attribute")
		Attribute("string_att", String, "String attribute")
		Attribute("date_time_att", DateTime, "DateTime attribute")
		Attribute("uuid_att", UUID, "UUID attribute")
		Attribute("any_att", Any, "Any attribute")
	})
	View("default", func() {
		Attribute("bool_att")
		Attribute("int_att")
		Attribute("num_att")
		Attribute("string_att")
		Attribute("date_time_att")
		Attribute("uuid_att")
		Attribute("any_att")
	})
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL