aboutsummaryrefslogtreecommitdiff
path: root/kamusku.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-01-31 04:56:36 +0700
committerShulhan <ms@kilabit.info>2021-01-31 06:16:54 +0700
commit6c7bfd42bc1128f5969e9e40b23d6b828601f7cb (patch)
tree8138149fde47f135b965be0837b4f8b83421728f /kamusku.go
parent734ce643ecbc992834a8f78b44904b82b09bc84b (diff)
downloadkamusku-6c7bfd42bc1128f5969e9e40b23d6b828601f7cb.tar.xz
all: rewrite the server
This commit move the directClient to different repository called kamusku and changes the module name from kamusku to kamusd.
Diffstat (limited to 'kamusku.go')
-rw-r--r--kamusku.go52
1 files changed, 0 insertions, 52 deletions
diff --git a/kamusku.go b/kamusku.go
deleted file mode 100644
index 151d85d..0000000
--- a/kamusku.go
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2020, Shulhan <m.shulhan@gmail.com>. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//
-// Package kamusku is Go client for Kamus Besar Bahasa Indonesia at
-// kbbi.kemdikbud.go.id.
-//
-package kamusku
-
-import "time"
-
-const (
- hostname = "kbbi.kemdikbud.go.id"
- baseURL = "https://" + hostname
- loginURL = baseURL + "/Account/Login"
- entriPath = "/entri/"
-
- defServerAPI = "https://kamuskubot.df.r.appspot.com"
- envPort = "PORT"
- pathAPIDefinisi = "/api/definisi"
-
- attrNameClass = "class"
- attrNameHref = "href"
- attrNameTitle = "title"
- attrNameValue = "value"
-
- attrValueRootWord = "rootword"
-
- tagNameAnchor = "a"
- tagNameFont = "font"
- tagNameHeader2 = "h2"
- tagNameInput = "input"
- tagNameItalic = "i"
- tagNameOrderedList = "ol"
- tagNameSpan = "span"
- tagNameUnorderedList = "ul"
-
- paramNameIngatSaya = "IngatSaya"
- paramNameKata = "kata"
- paramNameKataSandi = "KataSandi"
- paramNameMasukan = "masukan"
- paramNameMasukanLengkap = "masukanLengkap"
- paramNamePage = "page"
- paramNamePosel = "Posel"
- paramNameRequestVerificationToken = "__RequestVerificationToken" //nolint: gosec
-
- paramValueDasar = "dasar"
- paramValueFalse = "false"
-
- defTimeout = 20 * time.Second
-)