wip: grpc api
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
1dd748e3f2
commit
2eba8d6511
174 changed files with 22012 additions and 11410 deletions
22
datastore/memory/memory.go
Normal file
22
datastore/memory/memory.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package memory
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/ehazlett/element/api/types"
|
||||
"github.com/ehazlett/element/proxy"
|
||||
)
|
||||
|
||||
type Memory struct {
|
||||
proxy map[string]*proxy.Config
|
||||
service map[string]*types.Service
|
||||
m sync.Mutex
|
||||
}
|
||||
|
||||
func NewMemory() (*Memory, error) {
|
||||
return &Memory{
|
||||
proxy: map[string]*proxy.Config{},
|
||||
service: map[string]*types.Service{},
|
||||
m: sync.Mutex{},
|
||||
}, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue