design

package
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Education = Type("Education", func() {
	Attribute("institution", String, "Name of the institution")
	Attribute("major", String, "Major name")
	Required("institution", "major")
})
View Source
var Experience = Type("Experience", func() {
	Attribute("company", String, "Name of the company")
	Attribute("role", String, "Name of the role in the company")
	Attribute("duration", Int, "Duration (in years) in the company")
	Required("company", "role", "duration")
})
View Source
var Resume = Type("Resume", func() {
	Attribute("name", String, "Name in the resume")
	Attribute("experience", ArrayOf(Experience), "Experience section in the resume")
	Attribute("education", ArrayOf(Education), "Education section in the resume")
	Required("name")
})
View Source
var StoredResume = ResultType("application/vnd.goa.resume", func() {
	TypeName("StoredResume")
	Attributes(func() {
		Extend(Resume)
		Attribute("id", Int, "ID of the resume")
		Attribute("created_at", String, "Time when resume was created")
		Required("id", "name", "experience", "education", "created_at")
	})
	View("default", func() {
		Attribute("id")
		Attribute("name")
		Attribute("experience")
		Attribute("education")
		Attribute("created_at")
	})
})

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