Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle saving/loading the set of tags #2

Open
Yoric opened this issue Mar 10, 2016 · 0 comments
Open

Handle saving/loading the set of tags #2

Yoric opened this issue Mar 10, 2016 · 0 comments

Comments

@Yoric
Copy link
Collaborator

Yoric commented Mar 10, 2016

For the moment, tags live only in memory. We should be able to save them to disk. Basically, each id may be associated to a list of strings.

This means adding to manager::AdapterManager methods

pub fn load(&self, path: String) -> Result<(), Error>;
pub fn save(&self, path: String) -> Result<(), Error>;

Then, when we perform the internal calls to add_service, add_getter or add_setter, we should check in the in-memory list to find out if the service/getter/setter has tags waiting for it.

I'm not sure about the error type.

In a followup issue, we'll think about saving tags as they are added/removed, or associating tags to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant