Documentation ¶
Index ¶
- func BuildBasicObjectSchema(r *JS.Reflector, d JS.Definitions, t reflect.Type, excludes []string) *JS.Schema
- func BuildConditionalItemSchema(r *JS.Reflector, d JS.Definitions, idKey string, configKey string, ...) *JS.Schema
- func BuildConditionalSchemaList(r *JS.Reflector, d JS.Definitions, idKey string, configKey string, ...) []*JS.Schema
- func BuildEnumSchema(enum []string) *JS.Schema
- func BuildIfThenObjectSchema(ifKey string, ifName string, thenKey string, thenSchema *JS.Schema) *JS.Schema
- func BuildRouterStrategySchemaList(r *JS.Reflector, d JS.Definitions, idKey string, configKey string) []*JS.Schema
- func BuildSingleOrArraySchema(r *JS.Reflector, d JS.Definitions, t reflect.Type) *JS.Schema
- func DefaultAlterField(_ reflect.Type, f *reflect.StructField) bool
- func DefaultPostFixSchema(s *JS.Schema, format string) *JS.Schema
- func LoadTypeByAlias(interfaceType, name string) reflect.Type
- func NewDefaultReflector() JS.Reflector
- func ReplaceFieldTypeElemByPairs(holder reflect.Type, field reflect.StructField, pairs []ReplaceFieldTypePair) (reflect.Type, bool)
- func ReplaceTypeElem(holder reflect.Type, oldElem reflect.Type, newElem reflect.Type) (reflect.Type, bool)
- func ReplaceTypeElemByPairs(holder reflect.Type, pairs []ReplaceTypePair) (reflect.Type, bool)
- func SchemaFromPtr(r *JS.Reflector, d JS.Definitions, ptr interface{}) *JS.Schema
- func ToElemType(ptr interface{}) reflect.Type
- type CustomDNSDomainMatcher
- type CustomFreedomDomainStrategy
- type CustomNetworkList
- type CustomPbAny
- type CustomPortRange
- type CustomRouterProtocol
- type CustomRouterProtocolList
- type CustomString
- type CustomStringList
- type ReplaceFieldTypePair
- type ReplaceTypePair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBasicObjectSchema ¶
func BuildEnumSchema ¶
func BuildIfThenObjectSchema ¶
func DefaultAlterField ¶
func DefaultAlterField(_ reflect.Type, f *reflect.StructField) bool
func LoadTypeByAlias ¶
func NewDefaultReflector ¶
func ReplaceFieldTypeElemByPairs ¶
func ReplaceFieldTypeElemByPairs(holder reflect.Type, field reflect.StructField, pairs []ReplaceFieldTypePair) (reflect.Type, bool)
func ReplaceTypeElem ¶
func ReplaceTypeElemByPairs ¶
func SchemaFromPtr ¶
func ToElemType ¶
Types ¶
type CustomDNSDomainMatcher ¶
type CustomDNSDomainMatcher struct{}
func (CustomDNSDomainMatcher) JSONSchema ¶
func (CustomDNSDomainMatcher) JSONSchema() *JS.Schema
type CustomFreedomDomainStrategy ¶
type CustomFreedomDomainStrategy struct{}
func (CustomFreedomDomainStrategy) JSONSchema ¶
func (CustomFreedomDomainStrategy) JSONSchema() *JS.Schema
type CustomNetworkList ¶
type CustomNetworkList struct{}
func (CustomNetworkList) JSONSchema2 ¶
func (CustomNetworkList) JSONSchema2(r *JS.Reflector, d JS.Definitions) *JS.Schema
type CustomPbAny ¶
type CustomPbAny struct{}
func (CustomPbAny) JSONSchema ¶
func (CustomPbAny) JSONSchema() *JS.Schema
type CustomPortRange ¶
type CustomPortRange struct{}
func (CustomPortRange) JSONSchema ¶
func (CustomPortRange) JSONSchema() *JS.Schema
type CustomRouterProtocol ¶
type CustomRouterProtocol struct{}
func (CustomRouterProtocol) JSONSchema ¶
func (CustomRouterProtocol) JSONSchema() *JS.Schema
type CustomRouterProtocolList ¶
type CustomRouterProtocolList struct{}
func (CustomRouterProtocolList) JSONSchema ¶
func (CustomRouterProtocolList) JSONSchema() *JS.Schema
type CustomString ¶
type CustomString struct{}
func (CustomString) JSONSchema ¶
func (CustomString) JSONSchema() *JS.Schema
type CustomStringList ¶
type CustomStringList struct{}
func (CustomStringList) JSONSchema ¶
func (CustomStringList) JSONSchema() *JS.Schema
type ReplaceFieldTypePair ¶
type ReplaceFieldTypePair [3]interface{}
type ReplaceTypePair ¶
type ReplaceTypePair [2]interface{}
Click to show internal directories.
Click to hide internal directories.