server.go 300 B

1234567891011121314151617
  1. package watchapi
  2. import (
  3. "github.com/docker/swarmkit/manager/state/store"
  4. )
  5. // Server is the store API gRPC server.
  6. type Server struct {
  7. store *store.MemoryStore
  8. }
  9. // NewServer creates a store API server.
  10. func NewServer(store *store.MemoryStore) *Server {
  11. return &Server{
  12. store: store,
  13. }
  14. }