response

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	// contains filtered or unexported fields
}

func New

func New(data json.RawMessage, filtered map[string]json.RawMessage) *Response

New creates a new Response instance with the provided data and filtered map. It takes data of type json.RawMessage and filtered of type map[string]json.RawMessage. It returns a pointer to a Response struct.

func (*Response) Body

func (r *Response) Body() json.RawMessage

Body returns the body of the Response as a json.RawMessage.

func (*Response) Filtered

func (r *Response) Filtered() map[string]json.RawMessage

Filtered returns the filtered response as a map of strings to json.RawMessage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL