ricochet-go/core/ricochet.go

21 lines
295 B
Go
Raw Normal View History

2016-07-01 03:18:55 +00:00
package core
type Ricochet struct {
Network *Network
Identity *Identity
Config *Config
}
func Initialize(configPath string) (*Ricochet, error) {
cfg, err := LoadConfig(configPath)
if err != nil {
return nil, err
}
ricochet := &Ricochet{
Config: cfg,
}
return ricochet, nil
}