2fbcf6ee6d
A few things at once because it was faster to get a demo out the door. Skipping most test implementation though I made failing stubs so I know what to fill in later. * Get/Post WalletState * downloadKey/email so that a second client can log in, and/or recover from lost client * Test client in Python to demonstrate the above * Organize into packages
28 lines
426 B
Go
28 lines
426 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"orblivion/lbry-id/auth"
|
|
"orblivion/lbry-id/server"
|
|
"orblivion/lbry-id/store"
|
|
"orblivion/lbry-id/wallet"
|
|
)
|
|
|
|
func storeInit() (s store.Store) {
|
|
s = store.Store{}
|
|
|
|
s.Init("sql.db")
|
|
|
|
err := s.Migrate()
|
|
if err != nil {
|
|
log.Fatalf("DB setup failure: %+v", err)
|
|
}
|
|
|
|
return
|
|
}
|
|
|
|
func main() {
|
|
store := storeInit()
|
|
srv := server.Init(&auth.Auth{}, &store, &wallet.WalletUtil{})
|
|
srv.Serve()
|
|
}
|