Adam Sadovsky | b85e353 | 2015-04-08 20:38:27 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Adam Sadovsky | 3ab0036 | 2015-04-10 22:06:06 -0700 | [diff] [blame] | 5 | // +build ignore |
| 6 | |
Adam Sadovsky | b85e353 | 2015-04-08 20:38:27 -0700 | [diff] [blame] | 7 | package server |
| 8 | |
| 9 | import "v.io/syncbase/v23/services/syncbase" |
| 10 | |
| 11 | type table struct { |
| 12 | name string |
| 13 | d *database |
| 14 | } |
| 15 | |
| 16 | var _ syncbase.TableServerMethods = (*table)(nil) |
| 17 | |
| 18 | // TODO(sadovsky): Implement Glob. |
| 19 | |
| 20 | //////////////////////////////////////// |
| 21 | // Internal helpers |
| 22 | |
| 23 | func (t *table) keyPart() string { |
| 24 | return joinKeyParts(t.d.keyPart(), t.name) |
| 25 | } |