Documentation
¶
Index ¶
- Constants
- func Annotation(s string) string
- type Catalog
- func (c *Catalog) AddBaseUrl(serverName string, path string) error
- func (c *Catalog) AddDescriptionToInfo(text string) error
- func (c *Catalog) AddDescriptionToMethod(d directive.Directive, text string) error
- func (c *Catalog) AddInfo(d directive.Directive) error
- func (c *Catalog) AddJSight(version string) error
- func (c *Catalog) AddMethod(d directive.Directive) error
- func (c *Catalog) AddQueryToCurrentMethod(d directive.Directive, q Query) error
- func (c *Catalog) AddRawUserType(d *directive.Directive)
- func (c *Catalog) AddRequest(d directive.Directive) error
- func (c *Catalog) AddRequestBody(s Schema, f SerializeFormat, d directive.Directive) error
- func (c *Catalog) AddRequestHeaders(s Schema, d directive.Directive) error
- func (c *Catalog) AddResponse(code string, annotation string, d directive.Directive) error
- func (c *Catalog) AddResponseBody(schemaName string, schemaBytes bytes.Bytes, bodyFormat SerializeFormat, ...) *jerr.JAPIError
- func (c *Catalog) AddResponseHeaders(s Schema, d directive.Directive) error
- func (c *Catalog) AddServer(name string, annotation string) error
- func (c *Catalog) AddTitle(name string) error
- func (c *Catalog) AddType(d directive.Directive, tt *UserSchemas) *jerr.JAPIError
- func (c *Catalog) AddVersion(version string) error
- func (c *Catalog) GetRawUserTypes() *directive.Directives
- func (c *Catalog) MarshalJSON() ([]byte, error)
- func (*Catalog) Read(coords directive.Coords) bytes.Bytes
- func (c *Catalog) ToJson() ([]byte, error)
- func (c *Catalog) ToJsonIndent() ([]byte, error)
- type HTTPRequest
- type HTTPRequestBody
- type HTTPRequestHeaders
- type HTTPResponse
- type HTTPResponseBody
- type HTTPResponseHeaders
- type Info
- type Method
- type OrderedResources
- type Path
- type PathVariables
- type Properties
- func (m *Properties) Each(fn eachPropertiesFunc) error
- func (m *Properties) EachReverse(fn eachPropertiesFunc) error
- func (m *Properties) EachSafe(fn eachSafePropertiesFunc)
- func (m *Properties) Find(fn findPropertiesFunc) (PropertiesItem, bool)
- func (m *Properties) Get(k string) (*SchemaContentJSight, bool)
- func (m *Properties) GetValue(k string) *SchemaContentJSight
- func (m *Properties) Has(k string) bool
- func (m *Properties) Len() int
- func (m *Properties) Map(fn mapPropertiesFunc) error
- func (m *Properties) MarshalJSON() ([]byte, error)
- func (m *Properties) Set(k string, v *SchemaContentJSight)
- func (m *Properties) SetToTop(k string, v *SchemaContentJSight)
- func (m *Properties) Update(k string, fn func(v *SchemaContentJSight) *SchemaContentJSight)
- type PropertiesItem
- type Query
- type Resource
- type ResourceMethod
- type ResourceMethodId
- type ResourceMethodIdList
- type ResourceMethods
- func (m *ResourceMethods) Each(fn eachResourceMethodsFunc) error
- func (m *ResourceMethods) EachReverse(fn eachResourceMethodsFunc) error
- func (m *ResourceMethods) EachSafe(fn eachSafeResourceMethodsFunc)
- func (m *ResourceMethods) Find(fn findResourceMethodsFunc) (ResourceMethodsItem, bool)
- func (m *ResourceMethods) Get(k ResourceMethodId) (*ResourceMethod, bool)
- func (m *ResourceMethods) GetValue(k ResourceMethodId) *ResourceMethod
- func (m *ResourceMethods) Has(k ResourceMethodId) bool
- func (m *ResourceMethods) Len() int
- func (m *ResourceMethods) Map(fn mapResourceMethodsFunc) error
- func (m *ResourceMethods) MarshalJSON() ([]byte, error)
- func (m *ResourceMethods) Set(k ResourceMethodId, v *ResourceMethod)
- func (m *ResourceMethods) SetToTop(k ResourceMethodId, v *ResourceMethod)
- func (m *ResourceMethods) Update(k ResourceMethodId, fn func(v *ResourceMethod) *ResourceMethod)
- type ResourceMethodsItem
- type Rule
- type Rules
- func (m *Rules) Each(fn eachRulesFunc) error
- func (m *Rules) EachReverse(fn eachRulesFunc) error
- func (m *Rules) EachSafe(fn eachSafeRulesFunc)
- func (m *Rules) Find(fn findRulesFunc) (RulesItem, bool)
- func (m *Rules) Get(k string) (Rule, bool)
- func (m *Rules) GetValue(k string) Rule
- func (m *Rules) Has(k string) bool
- func (m *Rules) Len() int
- func (m *Rules) Map(fn mapRulesFunc) error
- func (m *Rules) MarshalJSON() ([]byte, error)
- func (m *Rules) Set(k string, v Rule)
- func (m *Rules) SetToTop(k string, v Rule)
- func (m *Rules) Update(k string, fn func(v Rule) Rule)
- type RulesItem
- type Schema
- type SchemaContentJSight
- type SerializeFormat
- type Server
- type Servers
- func (m *Servers) Each(fn eachServersFunc) error
- func (m *Servers) EachReverse(fn eachServersFunc) error
- func (m *Servers) EachSafe(fn eachSafeServersFunc)
- func (m *Servers) Find(fn findServersFunc) (ServersItem, bool)
- func (m *Servers) Get(k string) (*Server, bool)
- func (m *Servers) GetValue(k string) *Server
- func (m *Servers) Has(k string) bool
- func (m *Servers) Len() int
- func (m *Servers) Map(fn mapServersFunc) error
- func (m *Servers) MarshalJSON() ([]byte, error)
- func (m *Servers) Set(k string, v *Server)
- func (m *Servers) SetToTop(k string, v *Server)
- func (m *Servers) Update(k string, fn func(v *Server) *Server)
- type ServersItem
- type StringSet
- type Tag
- type TagName
- type TagResourceMethods
- func (m *TagResourceMethods) Each(fn eachTagResourceMethodsFunc) error
- func (m *TagResourceMethods) EachReverse(fn eachTagResourceMethodsFunc) error
- func (m *TagResourceMethods) EachSafe(fn eachSafeTagResourceMethodsFunc)
- func (m *TagResourceMethods) Find(fn findTagResourceMethodsFunc) (TagResourceMethodsItem, bool)
- func (m *TagResourceMethods) Get(k Path) (*ResourceMethodIdList, bool)
- func (m *TagResourceMethods) GetValue(k Path) *ResourceMethodIdList
- func (m *TagResourceMethods) Has(k Path) bool
- func (m *TagResourceMethods) Len() int
- func (m *TagResourceMethods) Map(fn mapTagResourceMethodsFunc) error
- func (m *TagResourceMethods) MarshalJSON() ([]byte, error)
- func (m *TagResourceMethods) Set(k Path, v *ResourceMethodIdList)
- func (m *TagResourceMethods) SetToTop(k Path, v *ResourceMethodIdList)
- func (m *TagResourceMethods) Update(k Path, fn func(v *ResourceMethodIdList) *ResourceMethodIdList)
- type TagResourceMethodsItem
- type Tags
- func (m *Tags) Each(fn eachTagsFunc) error
- func (m *Tags) EachReverse(fn eachTagsFunc) error
- func (m *Tags) EachSafe(fn eachSafeTagsFunc)
- func (m *Tags) Find(fn findTagsFunc) (TagsItem, bool)
- func (m *Tags) Get(k TagName) (*Tag, bool)
- func (m *Tags) GetValue(k TagName) *Tag
- func (m *Tags) Has(k TagName) bool
- func (m *Tags) Len() int
- func (m *Tags) Map(fn mapTagsFunc) error
- func (m *Tags) MarshalJSON() ([]byte, error)
- func (m *Tags) Set(k TagName, v *Tag)
- func (m *Tags) SetToTop(k TagName, v *Tag)
- func (m *Tags) Update(k TagName, fn func(v *Tag) *Tag)
- type TagsItem
- type UserSchemas
- func (m *UserSchemas) Each(fn eachUserSchemasFunc) error
- func (m *UserSchemas) Get(k string) (jschema.Schema, bool)
- func (m *UserSchemas) GetValue(k string) jschema.Schema
- func (m *UserSchemas) Has(k string) bool
- func (m *UserSchemas) Len() int
- func (m *UserSchemas) Map(fn mapUserSchemasFunc) error
- func (m *UserSchemas) MarshalJSON() ([]byte, error)
- func (m *UserSchemas) Set(k string, v jschema.Schema)
- func (m *UserSchemas) Update(k string, fn func(v jschema.Schema) jschema.Schema)
- type UserSchemasItem
- type UserType
- type UserTypes
- func (m *UserTypes) Each(fn eachUserTypesFunc) error
- func (m *UserTypes) EachReverse(fn eachUserTypesFunc) error
- func (m *UserTypes) EachSafe(fn eachSafeUserTypesFunc)
- func (m *UserTypes) Find(fn findUserTypesFunc) (UserTypesItem, bool)
- func (m *UserTypes) Get(k string) (*UserType, bool)
- func (m *UserTypes) GetValue(k string) *UserType
- func (m *UserTypes) Has(k string) bool
- func (m *UserTypes) Len() int
- func (m *UserTypes) Map(fn mapUserTypesFunc) error
- func (m *UserTypes) MarshalJSON() ([]byte, error)
- func (m *UserTypes) Set(k string, v *UserType)
- func (m *UserTypes) SetToTop(k string, v *UserType)
- func (m *UserTypes) Update(k string, fn func(v *UserType) *UserType)
- type UserTypesItem
Constants ¶
const JDocExchangeFileSchemaVersion = "1.0.0"
Variables ¶
This section is empty.
Functions ¶
func Annotation ¶
Types ¶
type Catalog ¶
type Catalog struct { // Info represent "INFO" directive structure. Info *Info // Servers contains information about servers. Servers *Servers // UserTypes contains information about defined user types. UserTypes *UserTypes ResourceMethods *ResourceMethods Tags *Tags JSightVersion string // contains filtered or unexported fields }
func NewCatalog ¶
func NewCatalog() *Catalog
func (*Catalog) AddDescriptionToInfo ¶
func (*Catalog) AddDescriptionToMethod ¶
func (*Catalog) AddQueryToCurrentMethod ¶
func (*Catalog) AddRawUserType ¶
func (*Catalog) AddRequestBody ¶
func (*Catalog) AddRequestHeaders ¶
func (*Catalog) AddResponse ¶
func (*Catalog) AddResponseBody ¶
func (c *Catalog) AddResponseBody( schemaName string, schemaBytes bytes.Bytes, bodyFormat SerializeFormat, sn notation.SchemaNotation, d directive.Directive, tt *UserSchemas, ) *jerr.JAPIError
func (*Catalog) AddResponseHeaders ¶
func (*Catalog) AddVersion ¶
func (*Catalog) GetRawUserTypes ¶
func (c *Catalog) GetRawUserTypes() *directive.Directives
func (*Catalog) MarshalJSON ¶
func (*Catalog) ToJsonIndent ¶
type HTTPRequest ¶
type HTTPRequest struct { *HTTPRequestHeaders `json:"headers,omitempty"` *HTTPRequestBody `json:"body,omitempty"` Directive directive.Directive `json:"-"` }
type HTTPRequestBody ¶
type HTTPRequestBody struct { Format SerializeFormat `json:"format"` Schema *Schema `json:"schema"` Directive directive.Directive `json:"-"` }
type HTTPRequestHeaders ¶
type HTTPResponse ¶
type HTTPResponse struct { Code string `json:"code"` Annotation string `json:"annotation,omitempty"` Headers *HTTPResponseHeaders `json:"headers,omitempty"` Body *HTTPResponseBody `json:"body"` Directive directive.Directive `json:"-"` }
type HTTPResponseBody ¶
type HTTPResponseBody struct { Format SerializeFormat `json:"format"` Schema *Schema `json:"schema"` Directive directive.Directive `json:"-"` }
func NewHTTPResponseBody ¶
func NewHTTPResponseBody( name string, b bytes.Bytes, f SerializeFormat, sn notation.SchemaNotation, d directive.Directive, tt *UserSchemas, ) (HTTPResponseBody, *jerr.JAPIError)
type HTTPResponseHeaders ¶
type Info ¶
type Info struct { Title string `json:"title,omitempty"` Version string `json:"version,omitempty"` Description *string `json:"description,omitempty"` Directive directive.Directive `json:"-"` }
Info general info about api
type OrderedResources ¶
type OrderedResources []Resource
func (OrderedResources) MarshalJSON ¶
func (oo OrderedResources) MarshalJSON() ([]byte, error)
type PathVariables ¶
type PathVariables struct {
Schema Schema `json:"schema"`
}
type Properties ¶
type Properties struct {
// contains filtered or unexported fields
}
Properties represent JSight object properties. gen:OrderedMap
func NewProperties ¶
func NewProperties(data map[string]*SchemaContentJSight, order []string) *Properties
func (*Properties) Each ¶
func (m *Properties) Each(fn eachPropertiesFunc) error
Each iterates and perform given function on each item in the map.
func (*Properties) EachReverse ¶
func (m *Properties) EachReverse(fn eachPropertiesFunc) error
EachReverse act almost the same as Each but in reverse order.
func (*Properties) EachSafe ¶
func (m *Properties) EachSafe(fn eachSafePropertiesFunc)
func (*Properties) Find ¶
func (m *Properties) Find(fn findPropertiesFunc) (PropertiesItem, bool)
Find finds first matched item from the map.
func (*Properties) Get ¶
func (m *Properties) Get(k string) (*SchemaContentJSight, bool)
Get gets a value by key.
func (*Properties) GetValue ¶
func (m *Properties) GetValue(k string) *SchemaContentJSight
GetValue gets a value by key.
func (*Properties) Has ¶
func (m *Properties) Has(k string) bool
Has checks that specified key is set.
func (*Properties) Map ¶
func (m *Properties) Map(fn mapPropertiesFunc) error
Map iterates and changes values in the map.
func (*Properties) MarshalJSON ¶
func (m *Properties) MarshalJSON() ([]byte, error)
func (*Properties) Set ¶
func (m *Properties) Set(k string, v *SchemaContentJSight)
Set sets a value with specified key.
func (*Properties) SetToTop ¶
func (m *Properties) SetToTop(k string, v *SchemaContentJSight)
SetToTop do the same as Set, but new key will be placed on top of the order map.
func (*Properties) Update ¶
func (m *Properties) Update(k string, fn func(v *SchemaContentJSight) *SchemaContentJSight)
Update updates a value with specified key.
type PropertiesItem ¶
type PropertiesItem struct { Key string Value *SchemaContentJSight }
PropertiesItem represent single data from the Properties.
type Query ¶
type Resource ¶
type Resource struct { Val *ResourceMethod Key ResourceMethodId }
type ResourceMethod ¶
type ResourceMethod struct { Path Path `json:"path"` Tags []TagName `json:"tags"` PathVariables *PathVariables `json:"pathVariables,omitempty"` Annotation string `json:"annotation,omitempty"` Description *string `json:"description,omitempty"` Query *Query `json:"query,omitempty"` Request *HTTPRequest `json:"request,omitempty"` Responses []HTTPResponse `json:"responses,omitempty"` HttpMethod Method `json:"httpMethod"` }
type ResourceMethodId ¶
type ResourceMethodId struct {
// contains filtered or unexported fields
}
func (ResourceMethodId) MarshalText ¶
func (r ResourceMethodId) MarshalText() ([]byte, error)
func (ResourceMethodId) String ¶
func (r ResourceMethodId) String() string
type ResourceMethodIdList ¶
type ResourceMethodIdList struct {
// contains filtered or unexported fields
}
func (ResourceMethodIdList) MarshalJSON ¶
func (l ResourceMethodIdList) MarshalJSON() ([]byte, error)
type ResourceMethods ¶
type ResourceMethods struct {
// contains filtered or unexported fields
}
ResourceMethods represent available resource methods. gen:OrderedMap
func (*ResourceMethods) Each ¶
func (m *ResourceMethods) Each(fn eachResourceMethodsFunc) error
Each iterates and perform given function on each item in the map.
func (*ResourceMethods) EachReverse ¶
func (m *ResourceMethods) EachReverse(fn eachResourceMethodsFunc) error
EachReverse act almost the same as Each but in reverse order.
func (*ResourceMethods) EachSafe ¶
func (m *ResourceMethods) EachSafe(fn eachSafeResourceMethodsFunc)
func (*ResourceMethods) Find ¶
func (m *ResourceMethods) Find(fn findResourceMethodsFunc) (ResourceMethodsItem, bool)
Find finds first matched item from the map.
func (*ResourceMethods) Get ¶
func (m *ResourceMethods) Get(k ResourceMethodId) (*ResourceMethod, bool)
Get gets a value by key.
func (*ResourceMethods) GetValue ¶
func (m *ResourceMethods) GetValue(k ResourceMethodId) *ResourceMethod
GetValue gets a value by key.
func (*ResourceMethods) Has ¶
func (m *ResourceMethods) Has(k ResourceMethodId) bool
Has checks that specified key is set.
func (*ResourceMethods) Map ¶
func (m *ResourceMethods) Map(fn mapResourceMethodsFunc) error
Map iterates and changes values in the map.
func (*ResourceMethods) MarshalJSON ¶
func (m *ResourceMethods) MarshalJSON() ([]byte, error)
func (*ResourceMethods) Set ¶
func (m *ResourceMethods) Set(k ResourceMethodId, v *ResourceMethod)
Set sets a value with specified key.
func (*ResourceMethods) SetToTop ¶
func (m *ResourceMethods) SetToTop(k ResourceMethodId, v *ResourceMethod)
SetToTop do the same as Set, but new key will be placed on top of the order map.
func (*ResourceMethods) Update ¶
func (m *ResourceMethods) Update(k ResourceMethodId, fn func(v *ResourceMethod) *ResourceMethod)
Update updates a value with specified key.
type ResourceMethodsItem ¶
type ResourceMethodsItem struct { Key ResourceMethodId Value *ResourceMethod }
ResourceMethodsItem represent single data from the ResourceMethods.
type Rule ¶
func (Rule) MarshalJSON ¶
type Rules ¶
type Rules struct {
// contains filtered or unexported fields
}
Rules represent JSight rules. gen:OrderedMap
func (*Rules) EachReverse ¶
EachReverse act almost the same as Each but in reverse order.
func (*Rules) MarshalJSON ¶
type Schema ¶
type Schema struct { // Notation used notation for this schema. Notation notation.SchemaNotation // ContentJSight a JSight schema. ContentJSight *SchemaContentJSight // UsedUserTypes a list of used user types. UsedUserTypes *StringSet // UserUserTypes a list of used user enums. UsedUserEnums *StringSet // ContentRegexp a regular expression. ContentRegexp string }
Schema represent a user defined schema.
func NewRegexSchema ¶
func NewSchema ¶
func NewSchema(n notation.SchemaNotation) Schema
func UnmarshalSchema ¶
func UnmarshalSchema(name string, b []byte, userTypes *UserSchemas) (_ Schema, err error)
UnmarshalSchema unmarshal a schema from the given slice of bytes. Marshaled schema shouldn't contain any trailing symbols.
func (Schema) MarshalJSON ¶
type SchemaContentJSight ¶
type SchemaContentJSight struct { // JsonType a JSON type. JsonType string // Type a JSight type. Type string // ScalarValue contains scalar value from the example. // Make sense only for scalar types like string, integer, and etc. ScalarValue string // InheritedFrom a user defined type from which this property is inherited. InheritedFrom string // Note a user note. Note string // Rules a list of attached rules. Rules *Rules // Properties represent available object properties. // Make sense only when Type is "object". Properties *Properties // Items represent available array items. // Make sense only when Type is "array". Items []*SchemaContentJSight // IsKeyShortcut indicates that this is an object property which is described // by user defined type. IsKeyShortcut bool // Optional indicates that this schema item is option or not. Optional bool }
func (SchemaContentJSight) MarshalJSON ¶
func (c SchemaContentJSight) MarshalJSON() (b []byte, err error)
type SerializeFormat ¶
type SerializeFormat string
const ( SerializeFormatJSON SerializeFormat = "json" SerializeFormatPlainString SerializeFormat = "plainString" SerializeFormatBinary SerializeFormat = "binary" )
func SchemaSerializeFormat ¶
func SchemaSerializeFormat(n notation.SchemaNotation) (SerializeFormat, error)
type Servers ¶
type Servers struct {
// contains filtered or unexported fields
}
Servers represent available servers. gen:OrderedMap
func (*Servers) EachReverse ¶
EachReverse act almost the same as Each but in reverse order.
func (*Servers) Find ¶
func (m *Servers) Find(fn findServersFunc) (ServersItem, bool)
Find finds first matched item from the map.
func (*Servers) MarshalJSON ¶
type ServersItem ¶
ServersItem represent single data from the Servers.
type StringSet ¶
type StringSet struct {
// contains filtered or unexported fields
}
StringSet a set of strings. gen:Set
func NewStringSet ¶
type Tag ¶
type Tag struct { ResourceMethods *TagResourceMethods Children *Tags Name TagName Title string Description string }
func (*Tag) MarshalJSON ¶
type TagResourceMethods ¶
type TagResourceMethods struct {
// contains filtered or unexported fields
}
TagResourceMethods represent available resource methods for the tag. gen:OrderedMap
func (*TagResourceMethods) Each ¶
func (m *TagResourceMethods) Each(fn eachTagResourceMethodsFunc) error
Each iterates and perform given function on each item in the map.
func (*TagResourceMethods) EachReverse ¶
func (m *TagResourceMethods) EachReverse(fn eachTagResourceMethodsFunc) error
EachReverse act almost the same as Each but in reverse order.
func (*TagResourceMethods) EachSafe ¶
func (m *TagResourceMethods) EachSafe(fn eachSafeTagResourceMethodsFunc)
func (*TagResourceMethods) Find ¶
func (m *TagResourceMethods) Find(fn findTagResourceMethodsFunc) (TagResourceMethodsItem, bool)
Find finds first matched item from the map.
func (*TagResourceMethods) Get ¶
func (m *TagResourceMethods) Get(k Path) (*ResourceMethodIdList, bool)
Get gets a value by key.
func (*TagResourceMethods) GetValue ¶
func (m *TagResourceMethods) GetValue(k Path) *ResourceMethodIdList
GetValue gets a value by key.
func (*TagResourceMethods) Has ¶
func (m *TagResourceMethods) Has(k Path) bool
Has checks that specified key is set.
func (*TagResourceMethods) Len ¶
func (m *TagResourceMethods) Len() int
Len returns count of values.
func (*TagResourceMethods) Map ¶
func (m *TagResourceMethods) Map(fn mapTagResourceMethodsFunc) error
Map iterates and changes values in the map.
func (*TagResourceMethods) MarshalJSON ¶
func (m *TagResourceMethods) MarshalJSON() ([]byte, error)
func (*TagResourceMethods) Set ¶
func (m *TagResourceMethods) Set(k Path, v *ResourceMethodIdList)
Set sets a value with specified key.
func (*TagResourceMethods) SetToTop ¶
func (m *TagResourceMethods) SetToTop(k Path, v *ResourceMethodIdList)
SetToTop do the same as Set, but new key will be placed on top of the order map.
func (*TagResourceMethods) Update ¶
func (m *TagResourceMethods) Update(k Path, fn func(v *ResourceMethodIdList) *ResourceMethodIdList)
Update updates a value with specified key.
type TagResourceMethodsItem ¶
type TagResourceMethodsItem struct { Key Path Value *ResourceMethodIdList }
TagResourceMethodsItem represent single data from the TagResourceMethods.
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
Tags represent available tags. gen:OrderedMap
func (*Tags) EachReverse ¶
EachReverse act almost the same as Each but in reverse order.
func (*Tags) MarshalJSON ¶
type UserSchemas ¶
type UserSchemas struct {
// contains filtered or unexported fields
}
UserSchemas represent available user type's schemas. gen:UnsafeOrderedMap
func (*UserSchemas) Each ¶
func (m *UserSchemas) Each(fn eachUserSchemasFunc) error
Each iterates and perform given function on each item in the map.
func (*UserSchemas) Get ¶
func (m *UserSchemas) Get(k string) (jschema.Schema, bool)
Get gets a value by key.
func (*UserSchemas) GetValue ¶
func (m *UserSchemas) GetValue(k string) jschema.Schema
GetValue gets a value by key.
func (*UserSchemas) Has ¶
func (m *UserSchemas) Has(k string) bool
Has checks that specified key is set.
func (*UserSchemas) Map ¶
func (m *UserSchemas) Map(fn mapUserSchemasFunc) error
Map iterates and changes values in the map.
func (*UserSchemas) MarshalJSON ¶
func (m *UserSchemas) MarshalJSON() ([]byte, error)
type UserSchemasItem ¶
UserSchemasItem represent single data from the UserSchemas.
type UserTypes ¶
type UserTypes struct {
// contains filtered or unexported fields
}
UserTypes represent available user types. gen:OrderedMap
func (*UserTypes) EachReverse ¶
EachReverse act almost the same as Each but in reverse order.
func (*UserTypes) Find ¶
func (m *UserTypes) Find(fn findUserTypesFunc) (UserTypesItem, bool)
Find finds first matched item from the map.
func (*UserTypes) MarshalJSON ¶
type UserTypesItem ¶
UserTypesItem represent single data from the UserTypes.
Source Files
¶
- annotation.go
- catalog.go
- http_request.go
- http_response.go
- http_response_body.go
- info.go
- method.go
- path.go
- path_variables.go
- properties.go
- properties_gen.go
- query.go
- resource_method.go
- resource_method_id.go
- resource_method_id_list.go
- resource_method_ordered.go
- resource_methods.go
- resource_methods_gen.go
- rule.go
- rules.go
- rules_gen.go
- schema.go
- serialize_format.go
- servers.go
- servers_gen.go
- setters.go
- string_set_gen.go
- tag.go
- tag_name.go
- tag_resource_methods.go
- tag_resource_methods_gen.go
- tags.go
- tags_gen.go
- user_schemas.go
- user_schemas_gen.go
- user_type.go
- user_types.go
- user_types_gen.go