| // Copyright 2015 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. |
| |
| // Sensor Log configuration constants and default flag values. |
| package config |
| |
| import ( |
| "time" |
| |
| "v.io/v23/naming" |
| ) |
| |
| const ( |
| DefaultSbService = "syncbase" |
| |
| AppName = "sensorlog" |
| DBName = "sldb" |
| User = "sluser" |
| |
| SyncPriority = 42 |
| |
| TimeOutputFormat = "2006-01-02 15:04:05.000" |
| |
| // Delay between SIGINT and SIGKILL when stopping measuring script. |
| ScriptKillDelay = 100 * time.Millisecond |
| |
| // Both Syncbase write and sampling script slowness impose this limit; |
| // sampling with mocked out script and Syncbase write supports 200 µs. |
| MinSamplingInterval = 10 * time.Millisecond |
| ) |
| |
| func SyncgroupName(publishService, devId string) string { |
| return naming.Join(publishService, "%%sync", "sl", "dev", devId) |
| } |