import (
"context"
"github.com/jkawamoto/go-sia"
"github.com/jkawamoto/go-sia/client/renter"
httptransport "github.com/go-openapi/runtime/client"
)
var (
DefaultDataPieces int64 = 10
DefaultParityPieces int64 = 20
)
client := sia.NewClient("")
client.Renter.PostRenterUploadSiapath(
renter.NewPostRenterUploadSiapathParamsWithContext(context.Background()).
WithSiapath("sia-path").
WithSource("path/to/local/file").
WithDatapieces(&DefaultDataPieces).
WithParitypieces(&DefaultParityPieces),
httptransport.BasicAuth("", "Sia Password"))
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Sia client library for Go
License
jkawamoto/go-sia
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sia client library for Go
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published