예제 #1
0
func (s *Server) appendUDFService() {
	l := s.LogService.NewLogger("[udf] ", log.LstdFlags)
	srv := udf.NewService(s.config.UDF, l)

	s.TaskMaster.UDFService = srv
	s.AppendService("udf", srv)
}
예제 #2
0
func (s *Server) appendUDFService(c udf.Config) {
	l := s.LogService.NewLogger("[udf] ", log.LstdFlags)
	srv := udf.NewService(c, l)

	s.TaskMaster.UDFService = srv
	s.Services = append(s.Services, srv)
}