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

Method Init

code/rest/install_controller.go:38–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (this *InstallController) Init() {
39 this.BaseController.Init()
40
41 b := core.CONTEXT.GetBean(this.uploadTokenDao)
42 if c, ok := b.(*UploadTokenDao); ok {
43 this.uploadTokenDao = c
44 }
45
46 b = core.CONTEXT.GetBean(this.downloadTokenDao)
47 if c, ok := b.(*DownloadTokenDao); ok {
48 this.downloadTokenDao = c
49 }
50
51 b = core.CONTEXT.GetBean(this.matterDao)
52 if c, ok := b.(*MatterDao); ok {
53 this.matterDao = c
54 }
55
56 b = core.CONTEXT.GetBean(this.matterService)
57 if c, ok := b.(*MatterService); ok {
58 this.matterService = c
59 }
60
61 b = core.CONTEXT.GetBean(this.imageCacheDao)
62 if c, ok := b.(*ImageCacheDao); ok {
63 this.imageCacheDao = c
64 }
65
66 b = core.CONTEXT.GetBean(this.imageCacheService)
67 if c, ok := b.(*ImageCacheService); ok {
68 this.imageCacheService = c
69 }
70
71 this.tableNames = []interface{}{
72 &Dashboard{},
73 &Bridge{},
74 &DownloadToken{},
75 &Footprint{},
76 &ImageCache{},
77 &Matter{},
78 &Preference{},
79 &Session{},
80 &Share{},
81 &Space{},
82 &SpaceMember{},
83 &UploadToken{},
84 &UploadSession{},
85 &UploadChunk{},
86 &User{},
87 }
88
89}
90
91func (this *InstallController) RegisterRoutes() map[string]func(writer http.ResponseWriter, request *http.Request) {
92

Callers

nothing calls this directly

Calls 2

InitMethod · 0.65
GetBeanMethod · 0.65

Tested by

no test coverage detected