Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrUnmarshalProtoJSONFailed = "failed to unmarshal proto JSON: %v" ErrReadBodyFailed = "failed to read body: %v" )
Variables ¶
View Source
var ( ErrCodeReadBodyFailed *string ErrCodeInvalidProtoMessage *string ErrCodeUnmarshalProtoJSONFailed *string )
View Source
var (
ErrInvalidProtoMessage = errors.New("invalid proto message")
)
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder( encoder gonethttpresponse.Encoder, ) (*Decoder, error)
NewDecoder creates a new Decoder instance
Parameters:
- encoder: The HTTP response encoder
Returns:
- *Decoder: The decoder instance
- error: The error if any
Click to show internal directories.
Click to hide internal directories.