Need help with go-mega?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

t3rm1n4l
152 Stars 37 Forks MIT License 94 Commits 19 Opened issues

Description

A client library in go for mega.co.nz storage service

Services available

!
?

Need anything else?

Contributors list

# 108
Go
golang
s3
google-...
47 commits
# 238,223
Shell
C
Erlang
Git
35 commits
# 97,113
Dart
Android
lnd
Shell
2 commits
# 743,484
Go
1 commit
# 743,485
Go
1 commit
# 19,738
Go
SQLite
cheat-s...
GraphQL
1 commit
# 679,001
Go
1 commit
# 74,328
Go
adminis...
vuejs
Objecti...
1 commit
# 268,916
C
Objecti...
redshif...
Shell
1 commit
# 194,297
npm
css-fra...
hugo
hugo-th...
1 commit

go-mega

A client library in go for mega.co.nz storage service.

An implementation of command-line utility can be found at https://github.com/t3rm1n4l/megacmd

Build Status

What can i do with this library?

This is an API client library for MEGA storage service. Currently, the library supports the basic APIs and operations as follows: - User login - Fetch filesystem tree - Upload file - Download file - Create directory - Move file or directory - Rename file or directory - Delete file or directory - Parallel split download and upload - Filesystem events auto sync - Unit tests

API methods

Please find full doc at https://pkg.go.dev/github.com/t3rm1n4l/go-mega

Testing

export MEGA_USER=
export MEGA_PASSWD=
$ make test
go test -v
=== RUN TestLogin
--- PASS: TestLogin (1.90 seconds)
=== RUN TestGetUser
--- PASS: TestGetUser (1.65 seconds)
=== RUN TestUploadDownload
--- PASS: TestUploadDownload (12.28 seconds)
=== RUN TestMove
--- PASS: TestMove (9.31 seconds)
=== RUN TestRename
--- PASS: TestRename (9.16 seconds)
=== RUN TestDelete
--- PASS: TestDelete (3.87 seconds)
=== RUN TestCreateDir
--- PASS: TestCreateDir (2.34 seconds)
=== RUN TestConfig
--- PASS: TestConfig (0.01 seconds)
=== RUN TestPathLookup
--- PASS: TestPathLookup (8.54 seconds)
=== RUN TestEventNotify
--- PASS: TestEventNotify (19.65 seconds)
PASS
ok  github.com/t3rm1n4l/go-mega68.745s

TODO

  • Implement APIs for public download url generation
  • Implement download from public url
  • Add shared user content management APIs
  • Add contact list management APIs

License

MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.