github.com/trigonella/mattermost-server@v5.11.1+incompatible/plugin/scheduler/plugin.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package scheduler
     5  
     6  import (
     7  	"github.com/mattermost/mattermost-server/app"
     8  	tjobs "github.com/mattermost/mattermost-server/jobs/interfaces"
     9  )
    10  
    11  type PluginsJobInterfaceImpl struct {
    12  	App *app.App
    13  }
    14  
    15  func init() {
    16  	app.RegisterJobsPluginsJobInterface(func(a *app.App) tjobs.PluginsJobInterface {
    17  		return &PluginsJobInterfaceImpl{a}
    18  	})
    19  }