Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root = &RootExpr{ Description: map[eval.Expression]*I18nExpr{}, Example: map[eval.Expression]*I18nExpr{}, Title: map[eval.Expression]*I18nExpr{}, }
Root is the design root expression.
Functions ¶
This section is empty.
Types ¶
type I18nExpr ¶
type I18nExpr struct { // Origin is the origin string. Trans []Translateable // Parent expression, ServiceExpr or APIExpr. Parent eval.Expression }
I18nExpr describes a CORS policy.
func (*I18nExpr) Validate ¶
func (i18n *I18nExpr) Validate() *eval.ValidationErrors
Validate ensures the origin expression is valid.
type RootExpr ¶
type RootExpr struct { // APIOrigins lists all the CORS definitions indexed by origin string // at the API level. Description map[eval.Expression]*I18nExpr Example map[eval.Expression]*I18nExpr Title map[eval.Expression]*I18nExpr }
RootExpr keeps track of the CORS origins defined in the design.
type Translateable ¶
Click to show internal directories.
Click to hide internal directories.