aboutsummaryrefslogtreecommitdiff
path: root/kamusd.go
diff options
context:
space:
mode:
Diffstat (limited to 'kamusd.go')
-rw-r--r--kamusd.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/kamusd.go b/kamusd.go
new file mode 100644
index 0000000..b9340e8
--- /dev/null
+++ b/kamusd.go
@@ -0,0 +1,26 @@
+// Copyright 2020, Shulhan <ms@kilabit.info>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//
+// Package kamusd provide HTTP server API for Kamusku client and Kamusku
+// Telegram bot.
+//
+package kamusd
+
+import "time"
+
+const (
+ defListen = ":3394"
+ defServerAPI = "https://kamuskubot.df.r.appspot.com"
+ defTimeout = 20 * time.Second
+
+ envPort = "PORT"
+ envKbbiSandi = "KBBI_SANDI"
+ envKbbiSurel = "KBBI_SUREL"
+
+ jsonEmptyObject = "{}"
+
+ pathAPIDefinisi = "/api/definisi"
+ paramNameKata = "kata"
+)