Get desktop application:
View/edit binary Protocol Buffers messages
SsRpc describes how a proto service method is exposed via GoOne's RPC runtime. Cmd binding priority: - if cmd != 0: use cmd - else if cmd_enum != 0: use cmd_enum numeric value - else if cmd_name != "": use g1_protocol.<cmd_name>
cmd is the numeric request CMD (SSPacketHeader.Cmd). Prefer cmd_enum/cmd_name if you want to avoid hardcoding numbers.
cmd_resp defaults to cmd+1 when omitted.
one_way means no response should be sent.
uid_lock enables per-uid serialization in the runtime wrapper.
cmd_name is the Go enum constant name from g1_protocol, e.g. "CMD_MAIN_LOGIN_REQ".
cmd_enum is an optional readable enum generated from g1_protocol.CMD.
auth indicates this method requires authentication.
sign indicates this method requires signature verification.
trace_tags provides extra trace tags in "k=v" form.
timeout_ms applies a per-method timeout at the runtime layer.
comment is for docs / generated code comments only.
http_path/http_method binds this method to an HTTP endpoint.
ws indicates this method is exposed over WebSocket (CSPacket transport).
grpc indicates this method is exposed as a gRPC endpoint.
grpc_service overrides the service name registered on grpc.Server.
SsRpcService describes service-scoped defaults inherited by methods unless a method-level ssrpc option overrides them.
timeout_ms applies a default per-method timeout for this proto service. When omitted, code generation falls back to the framework default.