github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/handlers/library/plugin_stub.go (about)

     1  //go:build noplugin || !cgo
     2  // +build noplugin !cgo
     3  
     4  /*
     5   Copyright hechain All Rights Reserved.
     6  
     7   SPDX-License-Identifier: Apache-2.0
     8  */
     9  
    10  package library
    11  
    12  // loadPlugin loads a pluggable handler
    13  func (r *registry) loadPlugin(pluginPath string, handlerType HandlerType, extraArgs ...string) {
    14  	logger.Panicf("Plugins are not supported on this platform")
    15  }