Documentation ¶
Index ¶
- Constants
- Variables
- func DiffIDs(sourceURL, destURL string) error
- func GetAllRest(baseURL string, throttle int) (err error)
- func PutAllBinaryRest(baseFromURL string, baseToURL string, user string, pass string, conns int, ...) (err error)
- func PutAllRest(baseURL string, idProperty string, user string, pass string, conns int, ...) error
- func SyncIDs(service *SyncService) error
- type IDListRetriever
- type SyncService
Constants ¶
View Source
const (
BufferSize = 24
)
View Source
const Useragent = "up-restutil"
Variables ¶
Functions ¶
func GetAllRest ¶
func PutAllBinaryRest ¶
func PutAllRest ¶
func SyncIDs ¶
func SyncIDs(service *SyncService) error
Types ¶
type IDListRetriever ¶
IDListRetriever is the interface used for retrieving UUIDs from a provided source
Retrieve receives 2 unbuffered channels, one for IDs and the other for errors, and populates them accordingly as the function runs.
func GetIDListRetriever ¶
func GetIDListRetriever(filePath string, URL string) IDListRetriever
type SyncService ¶
type SyncService struct { SourceIDsRetriever IDListRetriever DestIDsRetriever IDListRetriever SourceURL string DestURL string MaxConcurrentReqs int MinExecTime int Retries int Deletes bool }
Click to show internal directories.
Click to hide internal directories.