MCPcopy Create free account

hub / github.com/abiosoft/caddy-json-schema / functions

Functions44 in github.com/abiosoft/caddy-json-schema

↓ 13 callersFunctionNewSchema
NewSchema creates a new Schema. It's primarily for the convenience of initiating struct maps.
schema.go:15
↓ 9 callersMethodsetType
(typ string)
schema.go:116
↓ 4 callersFunctiongodocLink
(pkg string)
schema.go:57
↓ 4 callersMethodpopulate
populate populates the Interface with the type of s.
interface.go:119
↓ 3 callersFunctionjsonToFile
jsonToFile writes JSON obj to file.
schema_writer.go:224
↓ 2 callersFunctionaddDocToSchema
(s *Schema, doc *DocStruct)
schema_util.go:80
↓ 2 callersFunctionfetchConfigDoc
fetchConfigDoc fetchs the JSON doc for config. e.g. admin, logging
doc.go:127
↓ 2 callersFunctionfetchNamespaceDoc
fetchNamespaceDoc fetches the JSON doc for namespace
doc.go:122
↓ 2 callersFunctiongetType
(typ string)
schema.go:98
↓ 2 callersFunctionisPublic
(fieldName string)
interface.go:252
↓ 2 callersFunctionmarkdownLink
(title, link string)
schema.go:69
↓ 2 callersFunctionpermOrDefault
(filename string)
schema_writer.go:248
↓ 2 callersMethodpopulateStruct
(t reflect.Type)
interface.go:162
↓ 2 callersMethodsetRef
(moduleID string)
schema.go:120
↓ 2 callersMethodtoSchema
toSchema converts the Interface to JSON schema.
interface.go:58
↓ 1 callersMethodPrepare
()
schema_writer.go:36
↓ 1 callersMethodWrite
()
schema_writer.go:37
↓ 1 callersFunctionallFields
allFields retrives all struct fields (including nested structs) for a type.
interface.go:262
↓ 1 callersMethodapply
(parent *Schema)
interface.go:363
↓ 1 callersMethodbuild
()
interface.go:293
↓ 1 callersMethodbuildWithInlineKey
()
interface.go:312
↓ 1 callersFunctioncacheFile
cacheFile returns the filesystem path to cached API doc for namespace
doc.go:172
↓ 1 callersFunctiondescription
(typeName, fieldType, module string)
schema.go:76
↓ 1 callersFunctionfetchAllDocumentedModules
fetchAllDocumentedModules() fetches and populate flatCaddyDocMap with all available documented modules.
doc.go:48
↓ 1 callersFunctionfetchAllModuleDocs
fetchJSONModuleDocs fetches docs for all available modules.
doc.go:98
↓ 1 callersFunctiongenerateSchema
()
schema_util.go:9
↓ 1 callersMethodgoPkg
()
interface.go:38
↓ 1 callersFunctionloadDoc
()
doc.go:15
↓ 1 callersFunctionloadRootDoc
loadRootDoc loads the documentation for the root config structure.
doc.go:32
↓ 1 callersMethodloadVsConfig
()
schema_writer.go:124
↓ 1 callersFunctionmarkdownDescription
(typeName, fieldType, module string)
schema.go:87
↓ 1 callersMethodprepareDirectory
()
schema_writer.go:60
↓ 1 callersMethodprepareFiles
()
schema_writer.go:79
↓ 1 callersMethodsetJSONConfig
()
schema_writer.go:132
↓ 1 callersMethodsetVsConfig
()
schema_writer.go:187
↓ 1 callersMethodsetYAMLConfig
()
schema_writer.go:159
↓ 1 callersFunctionwriteToFile
(w schemaWriter)
schema_writer.go:24
MethodMarshalJSON
MarshalJSON allows to marshal Schema.Type as string or list
schema.go:125
MethodPrepare
()
schema_writer.go:42
MethodPrepare
()
schema_writer.go:101
MethodWrite
()
schema_writer.go:43
MethodWrite
()
schema_writer.go:210
Functioninit
()
command.go:28
Functionrun
(fs caddycmd.Flags)
command.go:62