github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/jobs/expirynotify/expirynotify.go (about)

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