Skip to content

nstehr/go-nami

Repository files navigation

Golang library for fast file transfers. Not protocol compatible, but heavily inspired by the tsunami protocol:

Usage:

Client

config := gonami.NewConfig()
e := gonami.BsonEncoder{}
client := gonami.NewClient(downloadDir, config, e)

client.GetFile(filename, host)
for p := range progress {
	log.Println(p)
}

GetFile will return a channel that you can use to read the download progress on

Server

  e := gonami.BsonEncoder{}
	s := gonami.NewServer(e, listenPort, uploadDirectory)
	go s.StartListening()

The Server struct contains a channel member that you can use to read the upload progress on

About

Golang library for fast file transfers. Not protocol compatible, but heavily inspired by the tsunami protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages