mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
17 lines
300 B
Go
17 lines
300 B
Go
package watchapi
|
|
|
|
import (
|
|
"github.com/docker/swarmkit/manager/state/store"
|
|
)
|
|
|
|
// Server is the store API gRPC server.
|
|
type Server struct {
|
|
store *store.MemoryStore
|
|
}
|
|
|
|
// NewServer creates a store API server.
|
|
func NewServer(store *store.MemoryStore) *Server {
|
|
return &Server{
|
|
store: store,
|
|
}
|
|
}
|