commit | eddddb1835b05e335d421dc8b68230098853504a | [log] [tgz] |
---|---|---|
author | Bogdan Caprita <caprita@google.com> | Tue Aug 04 16:29:30 2015 -0700 |
committer | Bogdan Caprita <caprita@google.com> | Tue Aug 04 16:29:30 2015 -0700 |
tree | bbe9e86f654f7632a428c05e0cdde39de8c8a90f | |
parent | bc23195c9d3ca42d4ac68c57e6984f370ca61bc1 [diff] |
services/device/device: refactor {instance|installation}StateFlag with 'generic' Since Go doesn't support generics, we define an interface to wrap InstanceState and InstallationState and most of the previously duplicated code now operates on a set of such interface instances. We come out about even in terms of code, but the benefits of the refactoring will become more apparent once I add more logic (for implementing exclusion of states). Change-Id: I689fbb5b4e15efc6efd90e2a03cd8ba779d14111
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.