ricochet-go/core/ricochet.go

20 lines
304 B
Go
Raw Normal View History

2016-07-01 05:18:55 +02:00
package core
2016-09-11 06:57:54 +02:00
type Ricochet struct {
Config *Config
Network *Network
Identity *Identity
}
func (core *Ricochet) Init(conf *Config) error {
var err error
core.Config = conf
core.Network = CreateNetwork()
core.Identity, err = CreateIdentity(core)
if err != nil {
return err
}
return nil
2016-07-01 05:18:55 +02:00
}