github.com/Tyktechnologies/tyk@v2.9.5+incompatible/gateway/coprocess_python_stub.go (about)

     1  // +build !cgo
     2  
     3  // This only builds when CGO isn't enabled so that we don't attempt to do it on unsuiable environments,
     4  // since CGO is required for Python plugins. Yet, we have to maintain symbol compatibility for the main package.
     5  package gateway
     6  
     7  import (
     8  	"errors"
     9  
    10  	"github.com/TykTechnologies/tyk/coprocess"
    11  )
    12  
    13  func NewPythonDispatcher() (dispatcher coprocess.Dispatcher, err error) {
    14  	return nil, errors.New("python support not compiled")
    15  }