Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyBody = errors.New("empty body")
)
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Header MessageHeader `json:"header"` Payload interface{} `json:"payload"` PayloadJSON gjson.Result `json:"-"` Attach io.ReadCloser `json:"-"` }
func NewMessage ¶
func (*Message) UnmarshalJSON ¶
type MessageHeader ¶
type ResponseReader ¶
func NewResponseReader ¶
func NewResponseReader(resp *http.Response) (*ResponseReader, error)
func (*ResponseReader) Close ¶
func (r *ResponseReader) Close() error
func (*ResponseReader) ReadAttach ¶
func (r *ResponseReader) ReadAttach() (io.ReadCloser, error)
func (*ResponseReader) ReadDirective ¶
func (r *ResponseReader) ReadDirective() (*Message, error)
Click to show internal directories.
Click to hide internal directories.