Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abiosoft/caddy-json-schema
/ functions
Functions
44 in github.com/abiosoft/caddy-json-schema
⨍
Functions
44
◇
Types & classes
14
↓ 13 callers
Function
NewSchema
NewSchema creates a new Schema. It's primarily for the convenience of initiating struct maps.
schema.go:15
↓ 9 callers
Method
setType
(typ string)
schema.go:116
↓ 4 callers
Function
godocLink
(pkg string)
schema.go:57
↓ 4 callers
Method
populate
populate populates the Interface with the type of s.
interface.go:119
↓ 3 callers
Function
jsonToFile
jsonToFile writes JSON obj to file.
schema_writer.go:224
↓ 2 callers
Function
addDocToSchema
(s *Schema, doc *DocStruct)
schema_util.go:80
↓ 2 callers
Function
fetchConfigDoc
fetchConfigDoc fetchs the JSON doc for config. e.g. admin, logging
doc.go:127
↓ 2 callers
Function
fetchNamespaceDoc
fetchNamespaceDoc fetches the JSON doc for namespace
doc.go:122
↓ 2 callers
Function
getType
(typ string)
schema.go:98
↓ 2 callers
Function
isPublic
(fieldName string)
interface.go:252
↓ 2 callers
Function
markdownLink
(title, link string)
schema.go:69
↓ 2 callers
Function
permOrDefault
(filename string)
schema_writer.go:248
↓ 2 callers
Method
populateStruct
(t reflect.Type)
interface.go:162
↓ 2 callers
Method
setRef
(moduleID string)
schema.go:120
↓ 2 callers
Method
toSchema
toSchema converts the Interface to JSON schema.
interface.go:58
↓ 1 callers
Method
Prepare
()
schema_writer.go:36
↓ 1 callers
Method
Write
()
schema_writer.go:37
↓ 1 callers
Function
allFields
allFields retrives all struct fields (including nested structs) for a type.
interface.go:262
↓ 1 callers
Method
apply
(parent *Schema)
interface.go:363
↓ 1 callers
Method
build
()
interface.go:293
↓ 1 callers
Method
buildWithInlineKey
()
interface.go:312
↓ 1 callers
Function
cacheFile
cacheFile returns the filesystem path to cached API doc for namespace
doc.go:172
↓ 1 callers
Function
description
(typeName, fieldType, module string)
schema.go:76
↓ 1 callers
Function
fetchAllDocumentedModules
fetchAllDocumentedModules() fetches and populate flatCaddyDocMap with all available documented modules.
doc.go:48
↓ 1 callers
Function
fetchAllModuleDocs
fetchJSONModuleDocs fetches docs for all available modules.
doc.go:98
↓ 1 callers
Function
generateSchema
()
schema_util.go:9
↓ 1 callers
Method
goPkg
()
interface.go:38
↓ 1 callers
Function
loadDoc
()
doc.go:15
↓ 1 callers
Function
loadRootDoc
loadRootDoc loads the documentation for the root config structure.
doc.go:32
↓ 1 callers
Method
loadVsConfig
()
schema_writer.go:124
↓ 1 callers
Function
markdownDescription
(typeName, fieldType, module string)
schema.go:87
↓ 1 callers
Method
prepareDirectory
()
schema_writer.go:60
↓ 1 callers
Method
prepareFiles
()
schema_writer.go:79
↓ 1 callers
Method
setJSONConfig
()
schema_writer.go:132
↓ 1 callers
Method
setVsConfig
()
schema_writer.go:187
↓ 1 callers
Method
setYAMLConfig
()
schema_writer.go:159
↓ 1 callers
Function
writeToFile
(w schemaWriter)
schema_writer.go:24
Method
MarshalJSON
MarshalJSON allows to marshal Schema.Type as string or list
schema.go:125
Method
Prepare
()
schema_writer.go:42
Method
Prepare
()
schema_writer.go:101
Method
Write
()
schema_writer.go:43
Method
Write
()
schema_writer.go:210
Function
init
()
command.go:28
Function
run
(fs caddycmd.Flags)
command.go:62