pd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(compressType compress.Algorithm) utils.OptionFunc[option]

func Context

func Context(ctx context.Context) utils.OptionFunc[option]

func Seal

func Seal(data any, opts ...utils.OptionExtender) (dst []byte, err error)

func Serialize

func Serialize(serializeType serialize.Algorithm) utils.OptionFunc[option]

func Type

func Type(typ reflect.Type) utils.OptionFunc[option]

func Unseal

func Unseal(src []byte, opts ...utils.OptionExtender) (ctx context.Context, dst any, ok bool, err error)

func UnsealRaw

func UnsealRaw(src []byte, opts ...utils.OptionExtender) (ctx context.Context, dst []byte, isRaw bool, err error)

func UnsealT

func UnsealT[T any](src []byte, opts ...utils.OptionExtender) (ctx context.Context, dst T, ok bool, err error)

func Version

func Version(ver uint8) utils.OptionFunc[option]

Types

This section is empty.

Jump to

Keyboard shortcuts

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