MCPcopy
hub / github.com/Place1/wg-access-server / Save

Method Save

internal/storage/contracts.go:14–14  ·  view source on GitHub ↗
(device *Device)

Source from the content-addressed store, hash-verified

12type Storage interface {
13 Watcher
14 Save(device *Device) error
15 List(owner string) ([]*Device, error)
16 Get(owner string, name string) (*Device, error)
17 GetByPublicKey(publicKey string) (*Device, error)

Callers 5

RunMethod · 0.95
SetSessionFunction · 0.65
ClearSessionFunction · 0.65
SaveDeviceMethod · 0.65
SaveMethod · 0.65

Implementers 2

SQLStorageinternal/storage/sql.go
InMemoryStorageinternal/storage/inmemory.go

Calls

no outgoing calls

Tested by

no test coverage detected