util

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSONToMap

func ParseJSONToMap(msg []byte) (map[string]interface{}, error)

ParseJSONToMap parses the JSON message and returns the map

func ProcessGraphQLTemplate added in v0.1.0

func ProcessGraphQLTemplate(graphqlTemplate string, messageData map[string]interface{}) (string, error)

ProcessGraphQLTemplate processes the graphql template and returns the processed body

func ProcessTemplate

func ProcessTemplate(template map[string]interface{}, messageData map[string]interface{}) ([]byte, error)

ProcessTemplate processes the template and returns the processed body

func ReadRequestBody added in v0.4.4

func ReadRequestBody(resp *http.Response) ([]byte, error)

ReadRequestBody reads the response body and returns it as a byte slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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