serializer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiSerializer

type ApiSerializer[T any] interface {
	API() T
}

ApiSerializer holds a method to convert an underlying implementation to its API counterpart. This method uses generics to support different API entities.

type JsonSerializer

type JsonSerializer interface {
	JSON() ([]byte, error)
}

JsonSerializer holds a method to convert an underlying implementation to JSON format.

type YamlSerializer

type YamlSerializer interface {
	YAML() ([]byte, error)
}

YamlSerializer holds a method to convert an underlying implementation to YAML format.

Jump to

Keyboard shortcuts

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