common

package
v0.0.0-...-ed26a75 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBasicObjectSchema

func BuildBasicObjectSchema(r *JS.Reflector, d JS.Definitions, t reflect.Type, excludes []string) *JS.Schema

func BuildConditionalItemSchema

func BuildConditionalItemSchema(r *JS.Reflector, d JS.Definitions, idKey string, configKey string, idName string, nodeType reflect.Type) *JS.Schema

func BuildConditionalSchemaList

func BuildConditionalSchemaList(r *JS.Reflector, d JS.Definitions, idKey string, configKey string, interfaceType string, shortNames []string) []*JS.Schema

func BuildEnumSchema

func BuildEnumSchema(enum []string) *JS.Schema

func BuildIfThenObjectSchema

func BuildIfThenObjectSchema(ifKey string, ifName string, thenKey string, thenSchema *JS.Schema) *JS.Schema

func BuildRouterStrategySchemaList

func BuildRouterStrategySchemaList(r *JS.Reflector, d JS.Definitions, idKey string, configKey string) []*JS.Schema

func BuildSingleOrArraySchema

func BuildSingleOrArraySchema(r *JS.Reflector, d JS.Definitions, t reflect.Type) *JS.Schema

func DefaultAlterField

func DefaultAlterField(_ reflect.Type, f *reflect.StructField) bool

func DefaultPostFixSchema

func DefaultPostFixSchema(s *JS.Schema, format string) *JS.Schema

func LoadTypeByAlias

func LoadTypeByAlias(interfaceType, name string) reflect.Type

func NewDefaultReflector

func NewDefaultReflector() JS.Reflector

func ReplaceFieldTypeElemByPairs

func ReplaceFieldTypeElemByPairs(holder reflect.Type, field reflect.StructField, pairs []ReplaceFieldTypePair) (reflect.Type, bool)

func ReplaceTypeElem

func ReplaceTypeElem(holder reflect.Type, oldElem reflect.Type, newElem reflect.Type) (reflect.Type, bool)

func ReplaceTypeElemByPairs

func ReplaceTypeElemByPairs(holder reflect.Type, pairs []ReplaceTypePair) (reflect.Type, bool)

func SchemaFromPtr

func SchemaFromPtr(r *JS.Reflector, d JS.Definitions, ptr interface{}) *JS.Schema

func ToElemType

func ToElemType(ptr interface{}) reflect.Type

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{}

Jump to

Keyboard shortcuts

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