https://hits.dennysora.me/hits?name=ClickHitsCount&chapter=0
Github has cache so...this is not bug, Is feature.
https://hackmd.io/@dennySORA/ClickHitsCount
git clone [email protected]:dennySORA/Click_Hits_Count
Plesae put TLS/SSL in ssl folder in root folder.
Need to rename server in crt and key.
Example:
root folder
|d------- app
|d------- command
|d------- infrastructure
|d------- server
|d------- ssl (**Need Create**)
|f------- sercer.key (**Rename**)
|f------- server.crt (**Rename**)
|f------- go.mod
|f------- go.sum
|f------- main.go
http://127.0.0.1:8223/create/novel?name=Test
- name is any name.
http://127.0.0.1:8223/create/chapter?name=Test&id=Test&ep=0&chapter=0
SP. id is create novel name
- name is any name.
- id name need exist in Novel.
- ep is any number(int).
- chapter is any number(int).
http://127.0.0.1:8223/get/all/hits/ip
- This is get all hits ip and data.
http://127.0.0.1:8223/get/chapter/hits?chapter_id=&novel_name=&chapter_name=&ip&ep=&chapter=
If name or chapter not input parameters then return all chapter detailed data.
This is get chapter hits counts.
All parameter is can choose.
- chapter_id is "Chapter ID(int)".
- novel_name is "Novel Name(string)".
- chapter_name is "Chapter Name(string)".
- ip is "IP(string)".
- ep is "EP(int)".
- chapter is "Create chapter number(int)".
http://127.0.0.1:8223/get/chapter/hits?chapter_id=&novel_name=&chapter_name=&ip&ep=&chapter=
This is get chapter ip hits.
All parameter is can choose.
- chapter_id is "Chapter ID(int)".
- novel_name is "Novel Name(string)".
- chapter_name is "Chapter Name(string)".
- ip is "IP(string)".
- ep is "EP(int)".
- chapter is "Create chapter number(int)".
http://127.0.0.1:8223/get/novel/hits?novel_name=
This is get novel hits counts.
All parameter is can choose.
- novel_name is "Novel name(string)".
http://127.0.0.1:8223/get/ep/hits?novel_name=
This is get episode hits counts.
All parameter is can choose.
- novel_name is "Novel name(string)".
https://127.0.0.1:8123/hits?name=Test&chapter=0
- name is "Novel Name".
- chapter is "Create chapter number(int)".
- DennySORA
- GitHub
- Email : [email protected]