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

     1  // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  // The plugin package defines the primary interfaces for interacting with a Mattermost server: the
     5  // API and the hook interfaces.
     6  //
     7  // The API interface is used to perform actions. The Hook interface is used to respond to actions.
     8  //
     9  // Plugins should define a type that implements some of the methods from the Hook interface, then
    10  // pass an instance of that object into the rpcplugin package's Main function (See the HelloWorld
    11  // example.).
    12  //
    13  // Testing
    14  //
    15  // To make testing plugins easier, you can use the plugintest package to create a mock API for your
    16  // plugin to interact with. See
    17  // https://godoc.org/github.com/mattermost/mattermost-server/plugin/plugintest
    18  package plugin