mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-06 08:30:29 +00:00
18 lines
368 B
Go
18 lines
368 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(config *model.StartConfig) string {
|
|
return bind.Create(config)
|
|
}
|
|
|
|
func Invoke(index int, request *api.Request) string {
|
|
return bind.Invoke(index, request)
|
|
}
|