mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-08 01:20:27 +00:00
18 lines
362 B
Go
18 lines
362 B
Go
package libgopeed
|
|
|
|
// #cgo LDFLAGS: -static-libstdc++
|
|
import "C"
|
|
import (
|
|
"github.com/GopeedLab/gopeed/bind"
|
|
"github.com/GopeedLab/gopeed/pkg/api"
|
|
"github.com/GopeedLab/gopeed/pkg/api/model"
|
|
)
|
|
|
|
func Create(cfg *model.StartConfig) string {
|
|
return bind.Create(cfg)
|
|
}
|
|
|
|
func Invoke(index int, request *api.Request) string {
|
|
return bind.Invoke(index, request)
|
|
}
|