├── .gitattributes ├── .github └── workflows │ ├── go_tester.yml │ └── publish_release.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── bhandler ├── command_handler.go ├── common.go ├── connect_handler.go ├── convert_point_handler.go ├── cost_log_handler.go ├── enter_game_handler.go ├── keep_handler.go ├── kick_handler.go ├── login_handler.go ├── logout_handler.go ├── mark_online.go ├── ping_handler.go ├── prize_card_handler.go ├── prize_fetch_handler.go ├── prize_handler.go ├── query_point_handler.go └── register_handler.go ├── billing.service ├── cmd ├── app_command.go ├── doc.go ├── show_users.go ├── stop.go ├── up.go └── version.go ├── common ├── billing_packet.go ├── client_info.go ├── handler_resource.go ├── packet_handler.go └── server_config.go ├── config.yaml ├── go.mod ├── go.sum ├── main.go ├── models ├── account.go ├── account_cfg.go ├── account_prize.go ├── check_gm.go ├── check_login.go ├── convert_user_point.go ├── get_account_by_username.go └── register_account.go └── services ├── append_tool.go ├── billing ├── clean.go ├── init_database.go ├── init_listener.go ├── init_logger.go ├── load_handlers.go ├── run.go ├── run_accept_loop.go ├── send_packet_to_server.go ├── server.go ├── show_users.go └── stop.go ├── handle ├── allow_addr.go ├── conn_handle.go ├── handle_connection.go ├── read_packet_from_client.go ├── server_interface.go └── write_packet_to_client.go ├── load_server_config.go ├── packet_data_reader.go ├── process_attr.go ├── process_attr_linux.go ├── process_attr_windows.go ├── run_background.go └── show_version_info.go /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/go_tester.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/.github/workflows/go_tester.yml -------------------------------------------------------------------------------- /.github/workflows/publish_release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/.github/workflows/publish_release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/README.md -------------------------------------------------------------------------------- /bhandler/command_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/command_handler.go -------------------------------------------------------------------------------- /bhandler/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/common.go -------------------------------------------------------------------------------- /bhandler/connect_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/connect_handler.go -------------------------------------------------------------------------------- /bhandler/convert_point_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/convert_point_handler.go -------------------------------------------------------------------------------- /bhandler/cost_log_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/cost_log_handler.go -------------------------------------------------------------------------------- /bhandler/enter_game_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/enter_game_handler.go -------------------------------------------------------------------------------- /bhandler/keep_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/keep_handler.go -------------------------------------------------------------------------------- /bhandler/kick_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/kick_handler.go -------------------------------------------------------------------------------- /bhandler/login_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/login_handler.go -------------------------------------------------------------------------------- /bhandler/logout_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/logout_handler.go -------------------------------------------------------------------------------- /bhandler/mark_online.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/mark_online.go -------------------------------------------------------------------------------- /bhandler/ping_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/ping_handler.go -------------------------------------------------------------------------------- /bhandler/prize_card_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/prize_card_handler.go -------------------------------------------------------------------------------- /bhandler/prize_fetch_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/prize_fetch_handler.go -------------------------------------------------------------------------------- /bhandler/prize_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/prize_handler.go -------------------------------------------------------------------------------- /bhandler/query_point_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/query_point_handler.go -------------------------------------------------------------------------------- /bhandler/register_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/bhandler/register_handler.go -------------------------------------------------------------------------------- /billing.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/billing.service -------------------------------------------------------------------------------- /cmd/app_command.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/cmd/app_command.go -------------------------------------------------------------------------------- /cmd/doc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/cmd/doc.go -------------------------------------------------------------------------------- /cmd/show_users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/cmd/show_users.go -------------------------------------------------------------------------------- /cmd/stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/cmd/stop.go -------------------------------------------------------------------------------- /cmd/up.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/cmd/up.go -------------------------------------------------------------------------------- /cmd/version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/cmd/version.go -------------------------------------------------------------------------------- /common/billing_packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/common/billing_packet.go -------------------------------------------------------------------------------- /common/client_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/common/client_info.go -------------------------------------------------------------------------------- /common/handler_resource.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/common/handler_resource.go -------------------------------------------------------------------------------- /common/packet_handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/common/packet_handler.go -------------------------------------------------------------------------------- /common/server_config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/common/server_config.go -------------------------------------------------------------------------------- /config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/config.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/go.sum -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/main.go -------------------------------------------------------------------------------- /models/account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/account.go -------------------------------------------------------------------------------- /models/account_cfg.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/account_cfg.go -------------------------------------------------------------------------------- /models/account_prize.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/account_prize.go -------------------------------------------------------------------------------- /models/check_gm.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/check_gm.go -------------------------------------------------------------------------------- /models/check_login.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/check_login.go -------------------------------------------------------------------------------- /models/convert_user_point.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/convert_user_point.go -------------------------------------------------------------------------------- /models/get_account_by_username.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/get_account_by_username.go -------------------------------------------------------------------------------- /models/register_account.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/models/register_account.go -------------------------------------------------------------------------------- /services/append_tool.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/append_tool.go -------------------------------------------------------------------------------- /services/billing/clean.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/clean.go -------------------------------------------------------------------------------- /services/billing/init_database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/init_database.go -------------------------------------------------------------------------------- /services/billing/init_listener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/init_listener.go -------------------------------------------------------------------------------- /services/billing/init_logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/init_logger.go -------------------------------------------------------------------------------- /services/billing/load_handlers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/load_handlers.go -------------------------------------------------------------------------------- /services/billing/run.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/run.go -------------------------------------------------------------------------------- /services/billing/run_accept_loop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/run_accept_loop.go -------------------------------------------------------------------------------- /services/billing/send_packet_to_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/send_packet_to_server.go -------------------------------------------------------------------------------- /services/billing/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/server.go -------------------------------------------------------------------------------- /services/billing/show_users.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/show_users.go -------------------------------------------------------------------------------- /services/billing/stop.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/billing/stop.go -------------------------------------------------------------------------------- /services/handle/allow_addr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/handle/allow_addr.go -------------------------------------------------------------------------------- /services/handle/conn_handle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/handle/conn_handle.go -------------------------------------------------------------------------------- /services/handle/handle_connection.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/handle/handle_connection.go -------------------------------------------------------------------------------- /services/handle/read_packet_from_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/handle/read_packet_from_client.go -------------------------------------------------------------------------------- /services/handle/server_interface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/handle/server_interface.go -------------------------------------------------------------------------------- /services/handle/write_packet_to_client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/handle/write_packet_to_client.go -------------------------------------------------------------------------------- /services/load_server_config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/load_server_config.go -------------------------------------------------------------------------------- /services/packet_data_reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/packet_data_reader.go -------------------------------------------------------------------------------- /services/process_attr.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/process_attr.go -------------------------------------------------------------------------------- /services/process_attr_linux.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/process_attr_linux.go -------------------------------------------------------------------------------- /services/process_attr_windows.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/process_attr_windows.go -------------------------------------------------------------------------------- /services/run_background.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/run_background.go -------------------------------------------------------------------------------- /services/show_version_info.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/liuguangw/billing_go/HEAD/services/show_version_info.go --------------------------------------------------------------------------------