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

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package plugintest
     5  
     6  import "github.com/mattermost/mattermost-server/plugin"
     7  
     8  type API struct {
     9  	APIMOCKINTERNAL
    10  	Store *KeyValueStore
    11  }
    12  
    13  var _ plugin.API = (*API)(nil)
    14  var _ plugin.KeyValueStore = (*KeyValueStore)(nil)
    15  
    16  func (m *API) KeyValueStore() plugin.KeyValueStore {
    17  	return m.Store
    18  }