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