github.com/turingchain2020/turingchain@v1.1.21/system/dapp/manage/plugin.go (about)

     1  // Copyright Turing Corp. 2018 All Rights Reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package manage manage负责管理配置的插件
     6  // 1. 添加管理
     7  // 2. 添加运营人员
     8  // 3. (未来)修改某些配置项
     9  package manage
    10  
    11  import (
    12  	"github.com/turingchain2020/turingchain/pluginmgr"
    13  	"github.com/turingchain2020/turingchain/system/dapp/manage/commands"
    14  	"github.com/turingchain2020/turingchain/system/dapp/manage/executor"
    15  	"github.com/turingchain2020/turingchain/system/dapp/manage/types"
    16  )
    17  
    18  func init() {
    19  	pluginmgr.Register(&pluginmgr.PluginBase{
    20  		Name:     types.ManageX,
    21  		ExecName: executor.GetName(),
    22  		Exec:     executor.Init,
    23  		Cmd:      commands.ConfigCmd,
    24  		RPC:      nil,
    25  	})
    26  }