MCPcopy Create free account

hub / github.com/devopsfaith/api2html / functions

Functions150 in github.com/devopsfaith/api2html

↓ 16 callersMethodNew
New creates a gin engine with the received config and the injected factories
engine/factory.go:34
↓ 12 callersFunctionassertResponse
(t *testing.T, e *gin.Engine, url string, status int, body string)
engine/engine_test.go:119
↓ 10 callersMethodString
String implements the Stringer interface
engine/response.go:30
↓ 6 callersMethodSet
Set adds or updates the renderer with the given name. After updating its internal state, it alerts all the subscriptors by sending the new renderer an
engine/template_store.go:42
↓ 5 callersMethodAvailableISOs
()
generator/collector.go:17
↓ 5 callersMethodGenerate
(_ *cobra.Command, _ []string)
cmd/generate.go:56
↓ 5 callersMethodHandlerFunc
HandlerFunc handles a gin request rendering the data returned by the response generator. If the response generator does not return an error, it adds a
engine/handler.go:120
↓ 4 callersMethodCollect
(string)
generator/collector.go:16
↓ 4 callersMethodGenerate
(isos string)
generator/generator.go:12
↓ 4 callersFunctionNewMustacheRenderer
NewMustacheRenderer returns a MustacheRenderer and an error if something went wrong
engine/mustache.go:36
↓ 4 callersFunctionNewMustacheRendererMap
NewMustacheRendererMap returns a map with all renderers for the declared templates and layouts and an error if something went wrong
engine/mustache.go:14
↓ 4 callersMethodNow
()
engine/response.go:123
↓ 4 callersFunctionParseConfig
ParseConfig parses the content of the reader into a Config
engine/config.go:26
↓ 4 callersMethodServe
(_ *cobra.Command, _ []string)
cmd/serve.go:51
↓ 4 callersFunctionnewMustacheTemplate
(r io.Reader)
engine/mustache.go:78
↓ 3 callersMethodCreate
()
skeleton/skeleton.go:51
↓ 3 callersMethodGet
(name string)
engine/mustache.go:91
↓ 3 callersFunctionNewCollector
(configFolder, i18nFolder string)
generator/collector.go:49
↓ 3 callersFunctionNewHandler
NewHandler creates a Handler with the given configuration. The returned handler will be keeping itself subscribed to the latest template updates using
engine/handler.go:79
↓ 3 callersFunctionNewHandlerConfig
NewHandlerConfig creates a HandlerConfig from the given Page definition
engine/handler.go:45
↓ 3 callersFunctionNewLayoutMustacheRenderer
NewLayoutMustacheRenderer returns a LayoutMustacheRenderer and an error if something went wrong
engine/mustache.go:55
↓ 3 callersMethodRender
(iso string, data Data, scanner Scanner)
generator/render.go:33
↓ 3 callersMethodRender
(io.Writer, interface{})
engine/engine.go:79
↓ 3 callersMethodResponseGenerator
ResponseGenerator implements the ResponseGenerator interface
engine/response.go:82
↓ 3 callersFunctioncheckRenderer
(tmpl Renderer)
engine/mustache_test.go:131
↓ 3 callersFunctionreplaceParams
(URLPattern []byte, params map[string]string)
engine/backend.go:51
↓ 2 callersMethodCreate
(_ *cobra.Command, _ []string)
cmd/skeleton.go:51
↓ 2 callersMethodHandlerFunc
HandlerFunc is a gin middleware for dealing with some errors
engine/handler.go:182
↓ 2 callersFunctionNewBackend
NewBackend creates a Backend with the received http client and url pattern
engine/backend.go:31
↓ 2 callersFunctionNewErrorHandler
NewErrorHandler creates a ErrorHandler using the content of the received path
engine/handler.go:165
↓ 2 callersFunctionNewMustachePageFactory
NewMustachePageFactory creates a MustachePageFactory with the injected params
engine/page.go:11
↓ 2 callersFunctionNewStaticHandler
NewStaticHandler creates a StaticHandler using the content of the received path
engine/handler.go:140
↓ 2 callersFunctionNewTemplateStore
NewTemplateStore creates a TemplateStore ready to be used The returned TemplateStore will be accepting and managing subscriptions
engine/template_store.go:9
↓ 2 callersFunctionParseConfigFromFile
ParseConfigFromFile creates a Config with the contents of the received filepath
engine/config.go:15
↓ 2 callersMethodResponseGenerator
ResponseGenerator implements the ResponseGenerator interface
engine/response.go:55
↓ 2 callersMethodRun
(...string)
cmd/serve.go:38
↓ 2 callersMethodScan
()
generator/scan.go:11
↓ 2 callersMethodString
()
generator/collector.go:40
↓ 2 callersMethodWatch
(c *cobra.Command, p []string)
cmd/generate.go:72
↓ 2 callersFunctioncheckCommonResponseProperties
(t *testing.T, resp ResponseContext)
engine/response_test.go:209
↓ 2 callersFunctioncustomEngineFactory
(e engineWrapper)
cmd/serve_test.go:79
↓ 2 callersMethodgetMutex
(name string)
engine/template_store.go:81
↓ 2 callersFunctionputTemplateForm
(url, tmpl string)
engine/factory_test.go:157
↓ 1 callersMethodBuild
Build sets up the injected gin engine and template store depending on the contents of the received configuration
engine/page.go:23
↓ 1 callersFunctionCachedClient
CachedClient returns a Dackend to the received URLPattern with a in-memory cache aware http client
engine/backend.go:26
↓ 1 callersFunctionDefaultClient
DefaultClient returns a Dackend to the received URLPattern with the default http client from the stdlib
engine/backend.go:20
↓ 1 callersMethodHandlerFunc
HandlerFunc creates a gin handler that does nothing but writing the static content
engine/handler.go:155
↓ 1 callersFunctionJSONArrayDecoder
JSONArrayDecoder decodes the reader content and puts it into the Array property of the injected ResponseContext
engine/decode.go:26
↓ 1 callersFunctionJSONDecoder
JSONDecoder decodes the reader content and puts it into the Data property of the injected ResponseContext
engine/decode.go:13
↓ 1 callersFunctionNew
(basePath, ignoreRegex string)
generator/generator.go:15
↓ 1 callersFunctionNew
New creates a gin engine with the default Factory
engine/engine.go:69
↓ 1 callersFunctionNew
New returns a statikFS Skel
skeleton/skeleton.go:40
↓ 1 callersFunctionNewBlog
NewBlog returns a statikSkel with the blog example contents
skeleton/skeleton.go:45
↓ 1 callersFunctionNewScanner
(ts []string)
generator/scan.go:19
↓ 1 callersFunctionNoopResponse
NoopResponse is a ResponseGenerator that always returns an empty response and the ErrNoResponseGeneratorDefined error
engine/response.go:44
↓ 1 callersMethodString
()
generator/collector.go:29
↓ 1 callersMethodavailableConfigISOs
()
generator/collector.go:107
↓ 1 callersMethodavailableTranslationISOs
()
generator/collector.go:91
↓ 1 callersFunctiondefaultBlogSkelFactory
(outputPath string)
cmd/skeleton.go:43
↓ 1 callersFunctiondefaultEngineFactory
(cfgPath string, devel bool)
cmd/serve.go:43
↓ 1 callersFunctiondefaultGeneratorFactory
(basePath string, ignoreRegex string)
cmd/generate.go:48
↓ 1 callersFunctionerroredEngineFactory
(err error)
cmd/serve_test.go:75
↓ 1 callersMethodgetConfigurations
(iso string)
generator/collector.go:123
↓ 1 callersFunctiongetTemplatesInFolder
(prefix string)
generator/scan.go:38
↓ 1 callersMethodgetTranslations
(iso string)
generator/collector.go:168
↓ 1 callersMethodnewGinEngine
(cfg Config, devel bool)
engine/factory.go:98
↓ 1 callersMethodprepareOutputFolder
(iso string)
generator/render.go:61
↓ 1 callersMethodsetStatics
(e *gin.Engine, cfg Config)
engine/factory.go:114
↓ 1 callersMethodsubscribe
()
engine/template_store.go:29
↓ 1 callersMethodupdateRenderer
()
engine/handler.go:107
MethodAvailableISOs
()
generator/collector.go:75
MethodCollect
(iso string)
generator/collector.go:58
MethodCreate
()
cmd/skeleton_test.go:53
MethodCreate
()
cmd/skeleton_test.go:61
MethodCreate
Generate the skel from the statikFS
skeleton/skeleton.go:60
FunctionExampleGenerator
()
generator/generator_test.go:8
FunctionExampleResponseContext_String
()
engine/response_test.go:15
FunctionExecute
Execute executes the root command
cmd/root.go:13
MethodGenerate
(isos string)
generator/generator.go:39
MethodGenerate
(_ string)
cmd/generate_test.go:189
MethodGenerate
(have string)
cmd/generate_test.go:197
MethodGet
Get returns a Renderer and a boolean signaling if the given name is not in the store
engine/template_store.go:65
FunctionNewRenderer
(outputFolder string, r *regexp.Regexp)
generator/render.go:17
MethodRender
(string, Data, Scanner)
generator/render.go:14
MethodRender
Render implements the Renderer interface
engine/engine.go:86
MethodRender
Render implements the Renderer interface by returning the injected error
engine/engine.go:102
MethodRender
Render implements the renderer interface
engine/mustache.go:50
MethodRender
Render implements the renderer interface
engine/mustache.go:74
MethodRun
(_ ...string)
cmd/serve_test.go:87
MethodScan
()
generator/scan.go:25
MethodScan
()
generator/render_test.go:101
MethodSet
(name string, tmpl Renderer)
engine/template_store.go:73
FunctionTestData_String
(t *testing.T)
generator/collector_test.go:57
FunctionTestDynamicResponseGenerator_koBackend
(t *testing.T)
engine/response_test.go:92
FunctionTestDynamicResponseGenerator_koDecoder
(t *testing.T)
engine/response_test.go:131
FunctionTestDynamicResponseGenerator_ok
(t *testing.T)
engine/response_test.go:167
FunctionTestFactory_New_koConfigParser
(t *testing.T)
engine/factory_test.go:18
FunctionTestFactory_New_ok
(t *testing.T)
engine/factory_test.go:35
FunctionTestFactory_New_reloadTemplate
(t *testing.T)
engine/factory_test.go:86
FunctionTestJSONArrayDecoder
(t *testing.T)
engine/decode_test.go:22
next →1–100 of 150, ranked by callers