github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/jobs/product_notices/product_notices.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package product_notices
     5  
     6  import (
     7  	"github.com/masterhung0112/hk_server/v5/app"
     8  	tjobs "github.com/masterhung0112/hk_server/v5/jobs/interfaces"
     9  )
    10  
    11  type ProductNoticesJobInterfaceImpl struct {
    12  	App *app.App
    13  }
    14  
    15  func init() {
    16  	app.RegisterProductNoticesJobInterface(func(s *app.Server) tjobs.ProductNoticesJobInterface {
    17  		a := app.New(app.ServerConnector(s))
    18  		return &ProductNoticesJobInterfaceImpl{a}
    19  	})
    20  }