summaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config.go8
-rw-r--r--pkg/config/log.go7
2 files changed, 15 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
new file mode 100644
index 0000000..c620e4a
--- /dev/null
+++ b/pkg/config/config.go
@@ -0,0 +1,8 @@
+package config
+
+const SockType = "unixpacket"
+const SockPath = "/tmp/tunnel.sock"
+
+const TimeFormat = "2006-01-02 15:04:05"
+
+const BufSize = 1024
diff --git a/pkg/config/log.go b/pkg/config/log.go
new file mode 100644
index 0000000..9aa24b6
--- /dev/null
+++ b/pkg/config/log.go
@@ -0,0 +1,7 @@
+package config
+
+import "log"
+
+func init() {
+ log.SetFlags(log.Lshortfile)
+}