json

package
v0.0.0-...-97c5a11 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause, MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller

type Marshaller interface {
	// Marshal converts a request object to a JSON string.
	Marshal(interface{}) (string, error)

	// Unmarshal converts a JSON string to a response object.
	Unmarshal(string, interface{}) error

	// UnmarshalFromReader converts the contents from an io.Reader to a response object.
	UnmarshalFromReader(io.Reader, interface{}) error
}

Marshaller is the interface used to marshal and unmarshal Worldline Global Collect platform request and response objects to and from JSON. Thread-safe.

func DefaultMarshaller

func DefaultMarshaller() Marshaller

DefaultMarshaller returns the default implementation of the JSON Marshaller

Jump to

Keyboard shortcuts

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