Files
upstream-centrifugo/internal/apiproto/decode.go
upstream-mirror b352a9a30d
Some checks failed
test / Lint (push) Failing after 3s
test / Test with Go 1.26.8 (push) Failing after 2s
snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 01:17:21 +05:00

27 lines
1.1 KiB
Go

package apiproto
// RequestDecoder ...
type RequestDecoder interface {
DecodeBatch([]byte) (*BatchRequest, error)
DecodePublish([]byte) (*PublishRequest, error)
DecodeBroadcast([]byte) (*BroadcastRequest, error)
DecodeSubscribe([]byte) (*SubscribeRequest, error)
DecodeUnsubscribe([]byte) (*UnsubscribeRequest, error)
DecodeDisconnect([]byte) (*DisconnectRequest, error)
DecodePresence([]byte) (*PresenceRequest, error)
DecodePresenceStats([]byte) (*PresenceStatsRequest, error)
DecodeHistory([]byte) (*HistoryRequest, error)
DecodeHistoryRemove([]byte) (*HistoryRemoveRequest, error)
DecodeInfo([]byte) (*InfoRequest, error)
DecodeRPC([]byte) (*RPCRequest, error)
DecodeRefresh([]byte) (*RefreshRequest, error)
DecodeChannels([]byte) (*ChannelsRequest, error)
DecodeMapPublish([]byte) (*MapPublishRequest, error)
DecodeMapRemove([]byte) (*MapRemoveRequest, error)
DecodeMapReadState([]byte) (*MapReadStateRequest, error)
DecodeMapReadStream([]byte) (*MapReadStreamRequest, error)
DecodeMapStats([]byte) (*MapStatsRequest, error)
DecodeMapClear([]byte) (*MapClearRequest, error)
DecodeSharedPollPublish([]byte) (*SharedPollPublishRequest, error)
}