blob: 8ca7ae06d71d07b406526b8f0ea5c9284ac10a52 [file] [log] [blame]
// Copyright 2016 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package vine
import (
"time"
"v.io/v23/security/access"
"v.io/v23/discovery"
idiscovery "v.io/x/ref/lib/discovery"
)
// Store is the interface for sharing advertisements between vine plugins.
type Store interface {
// Add adds an advertisement with a given ttl.
Add(adinfo idiscovery.AdInfo, ttl time.Duration) error {access.Write}
// Delete deletes the advertisement from the store.
Delete(id discovery.AdId) error {access.Write}
}