aboutsummaryrefslogtreecommitdiff
path: root/client_options.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-01-11 14:14:15 +0700
committerShulhan <ms@kilabit.info>2025-01-11 14:14:15 +0700
commit95c8ba5699efa80fc19f7e210bcf4d1e189244e2 (patch)
treecbb505bf508b0e0aaa20574742e611bca6f16c46 /client_options.go
parent37632b2fc455187d90e058e319e35a9bff944df7 (diff)
downloadkbbi-95c8ba5699efa80fc19f7e210bcf4d1e189244e2.tar.xz
all: add options for Client
Currently, the options contains Debug field that print the HTML response as text when set to 1.
Diffstat (limited to 'client_options.go')
-rw-r--r--client_options.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/client_options.go b/client_options.go
new file mode 100644
index 0000000..e489988
--- /dev/null
+++ b/client_options.go
@@ -0,0 +1,11 @@
+// SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package kbbi
+
+// ClientOptions define the client options.
+type ClientOptions struct {
+ // Debug level for client connection.
+ // Level 1 print the received HTML page as plain text.
+ Debug int
+}