aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-05-22 21:29:35 +0700
committerShulhan <ms@kilabit.info>2022-05-22 21:51:47 +0700
commit0b92dbb8463dee31c005c59f67c2bf754a9eae12 (patch)
treea95162fc3aaa88ce772f9b7c8b79747c225a0ba8 /client.go
parent89494ecacdd03426da17def52e35a1a66c9630eb (diff)
downloadrescached-0b92dbb8463dee31c005c59f67c2bf754a9eae12.tar.xz
all: export and rename the hostsBlock type to Blockd
In the Environment, we have a field HostsBlocks that reference an unexported type hostsFile. In order for any package to be able to use this field, we need to export this type. While at it, we rename the type from hostsBlock to Blockd to make it simple and consistent with name.
Diffstat (limited to 'client.go')
-rw-r--r--client.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.go b/client.go
index 24e7fb6..53e057b 100644
--- a/client.go
+++ b/client.go
@@ -40,7 +40,7 @@ func (cl *Client) BlockdDisable(blockdName string) (an interface{}, err error) {
res = libhttp.EndpointResponse{}
params = url.Values{}
- hb *hostsBlock
+ hb *Blockd
resb []byte
)
@@ -70,7 +70,7 @@ func (cl *Client) BlockdEnable(blockdName string) (an interface{}, err error) {
res = libhttp.EndpointResponse{}
params = url.Values{}
- hb *hostsBlock
+ hb *Blockd
resb []byte
)
@@ -101,7 +101,7 @@ func (cl *Client) BlockdUpdate(blockdName string) (an interface{}, err error) {
params = url.Values{}
res = libhttp.EndpointResponse{}
- hb *hostsBlock
+ hb *Blockd
resb []byte
)