snapshot of https://github.com/centrifugal/centrifugo.git (master, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
7
internal/apiproto/encode_error.go
Normal file
7
internal/apiproto/encode_error.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package apiproto
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
func EncodeError(err *Error) ([]byte, error) {
|
||||
return json.Marshal(err)
|
||||
}
|
||||
Reference in New Issue
Block a user