MCPcopy
hub / github.com/eyebluecn/tank / Init

Method Init

code/rest/image_cache_controller.go:18–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (this *ImageCacheController) Init() {
19 this.BaseController.Init()
20
21 b := core.CONTEXT.GetBean(this.imageCacheDao)
22 if b, ok := b.(*ImageCacheDao); ok {
23 this.imageCacheDao = b
24 }
25
26 b = core.CONTEXT.GetBean(this.imageCacheService)
27 if b, ok := b.(*ImageCacheService); ok {
28 this.imageCacheService = b
29 }
30
31}
32
33func (this *ImageCacheController) RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request) {
34

Callers

nothing calls this directly

Calls 2

InitMethod · 0.65
GetBeanMethod · 0.65

Tested by

no test coverage detected