MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / OnInit

Method OnInit

module/log/iml.go:186–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184}
185
186func (i *imlLogModule) OnInit() {
187 register.Handle(func(v server.Server) {
188 ctx, cancel := context.WithCancel(context.Background())
189 ctx = utils.SetUserId(ctx, "admin")
190 //i.scheduleCtx = ctx
191 i.scheduleCancel = cancel
192 i.scheduleUpdateLogRecord(ctx)
193
194 })
195}
196
197func (i *imlLogModule) initGateway(ctx context.Context, clusterId string, clientDriver gateway.IClientDriver) error {
198 drivers := log_driver.Drivers()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected