MCPcopy Index your code
hub / github.com/koding/kite / Storage

Interface Storage

kontrol/storage.go:10–25  ·  view source on GitHub ↗

Storage is an interface to a kite storage. A storage should be safe to concurrent access.

Source from the content-addressed store, hash-verified

8// Storage is an interface to a kite storage. A storage should be safe to
9// concurrent access.
10type Storage interface {
11 // Get retrieves the Kites with the given query
12 Get(query *protocol.KontrolQuery) (Kites, error)
13
14 // Add inserts the given kite with the given value
15 Add(kite *protocol.Kite, value *kontrolprotocol.RegisterValue) error
16
17 // Update updates the value for the given kite
18 Update(kite *protocol.Kite, value *kontrolprotocol.RegisterValue) error
19
20 // Delete deletes the given kite from the storage
21 Delete(kite *protocol.Kite) error
22
23 // Upsert inserts or updates the value for the given kite
24 Upsert(kite *protocol.Kite, value *kontrolprotocol.RegisterValue) error
25}

Callers 27

sendHeartbeatsMethod · 0.65
getDstMethod · 0.65
verifyMethod · 0.65
publicIPFunction · 0.65
isWebsocketFunction · 0.65
HandleHeartbeatMethod · 0.65
GetKeyFromIDMethod · 0.65
GetKeyFromPublicMethod · 0.65
renewLoopMethod · 0.65
renewDurationMethod · 0.65
TestMultipleFunction · 0.65
TestConcurrencyFunction · 0.65

Implementers 2

Etcdkontrol/etcd.go
Postgreskontrol/postgres.go

Calls

no outgoing calls

Tested by

no test coverage detected