Add projects
This commit is contained in:
parent
2d3a9ad623
commit
8b607dd700
1802 changed files with 503346 additions and 2 deletions
18
backend/internal/pluginhost/abi.go
Normal file
18
backend/internal/pluginhost/abi.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package pluginhost
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/router-for-me/CLIProxyAPI/v7/sdk/pluginabi"
|
||||
)
|
||||
|
||||
const pluginHostABIVersion = pluginabi.ABIVersion
|
||||
|
||||
type pluginClient interface {
|
||||
Call(ctx context.Context, method string, request []byte) ([]byte, error)
|
||||
Shutdown()
|
||||
}
|
||||
|
||||
type pluginLoader interface {
|
||||
Open(file pluginFile, host *Host) (pluginClient, error)
|
||||
}
|
||||
Loading…
Reference in a new issue