base

package
v0.0.0-...-0158116 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialization

func Deserialization(source []byte, p IPayload) (err error)

func From

func From(source IPayload, target IPayload) (err error)

func Serialization

func Serialization(p IPayload) (target []byte, err error)

func To

func To(source IPayload, target IPayload) (err error)

Types

type Application

type Application interface {
	Exec(ctx context.Context, in Input) (out Output, err error)
}

type IPayload

type IPayload interface {
	Serialization() (target []byte, err error)
	Deserialization(source []byte) (err error)
	From(source IPayload) (err error)
	To(target IPayload) (err error)
}

type Input

type Input interface {
	IPayload
}

type Output

type Output interface {
	IPayload
}

Jump to

Keyboard shortcuts

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