datatransfer

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package datatransfer provides typed helpers for the free-form DataTransfer payload, whose Data field is an optional JSON string (*string) in every OCPP version. Use these to encode/decode a vendor-specific payload type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal[T any](v T) (*string, error)

Marshal JSON-encodes v into a *string suitable for a DataTransfer request or response Data field.

func Unmarshal

func Unmarshal[T any](data *string) (T, error)

Unmarshal JSON-decodes a DataTransfer Data field into T. A nil or empty data pointer yields the zero value of T and no error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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