snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
117
internal/apiproto/encode_response_gen.go
Normal file
117
internal/apiproto/encode_response_gen.go
Normal file
@@ -0,0 +1,117 @@
|
||||
// Code generated by internal/gen/api/main.go. DO NOT EDIT.
|
||||
|
||||
package apiproto
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
// JSONResponseEncoder ...
|
||||
type JSONResponseEncoder struct{}
|
||||
|
||||
func NewJSONResponseEncoder() *JSONResponseEncoder {
|
||||
return &JSONResponseEncoder{}
|
||||
}
|
||||
|
||||
// EncodeBatch ...
|
||||
func (e *JSONResponseEncoder) EncodeBatch(response *BatchResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodePublish ...
|
||||
func (e *JSONResponseEncoder) EncodePublish(response *PublishResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeBroadcast ...
|
||||
func (e *JSONResponseEncoder) EncodeBroadcast(response *BroadcastResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeSubscribe ...
|
||||
func (e *JSONResponseEncoder) EncodeSubscribe(response *SubscribeResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeUnsubscribe ...
|
||||
func (e *JSONResponseEncoder) EncodeUnsubscribe(response *UnsubscribeResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeDisconnect ...
|
||||
func (e *JSONResponseEncoder) EncodeDisconnect(response *DisconnectResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodePresence ...
|
||||
func (e *JSONResponseEncoder) EncodePresence(response *PresenceResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodePresenceStats ...
|
||||
func (e *JSONResponseEncoder) EncodePresenceStats(response *PresenceStatsResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeHistory ...
|
||||
func (e *JSONResponseEncoder) EncodeHistory(response *HistoryResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeHistoryRemove ...
|
||||
func (e *JSONResponseEncoder) EncodeHistoryRemove(response *HistoryRemoveResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeInfo ...
|
||||
func (e *JSONResponseEncoder) EncodeInfo(response *InfoResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeRPC ...
|
||||
func (e *JSONResponseEncoder) EncodeRPC(response *RPCResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeRefresh ...
|
||||
func (e *JSONResponseEncoder) EncodeRefresh(response *RefreshResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeChannels ...
|
||||
func (e *JSONResponseEncoder) EncodeChannels(response *ChannelsResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeMapPublish ...
|
||||
func (e *JSONResponseEncoder) EncodeMapPublish(response *MapPublishResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeMapRemove ...
|
||||
func (e *JSONResponseEncoder) EncodeMapRemove(response *MapRemoveResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeMapReadState ...
|
||||
func (e *JSONResponseEncoder) EncodeMapReadState(response *MapReadStateResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeMapReadStream ...
|
||||
func (e *JSONResponseEncoder) EncodeMapReadStream(response *MapReadStreamResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeMapStats ...
|
||||
func (e *JSONResponseEncoder) EncodeMapStats(response *MapStatsResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeMapClear ...
|
||||
func (e *JSONResponseEncoder) EncodeMapClear(response *MapClearResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
|
||||
// EncodeSharedPollPublish ...
|
||||
func (e *JSONResponseEncoder) EncodeSharedPollPublish(response *SharedPollPublishResponse) ([]byte, error) {
|
||||
return json.Marshal(response)
|
||||
}
|
||||
Reference in New Issue
Block a user