github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/plugin/supervisor.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package plugin
     5  
     6  // Supervisor provides the interface for an object that controls the execution of a plugin. This
     7  // type is only relevant to the server, and isn't used by the plugins themselves.
     8  type Supervisor interface {
     9  	Start(API) error
    10  	Wait() error
    11  	Stop() error
    12  	Hooks() Hooks
    13  }