codec

package
v0.0.0-...-588767e Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package codec provides Encryption Codec that can be used to encrypt sensitive data passed to and from Temporal Server

https://docs.temporal.io/security#data-converter

Index

Constants

View Source
const (
	MetadataEncodingEncrypted = "binary/encrypted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionCodec

type EncryptionCodec struct {
	// contains filtered or unexported fields
}

EncryptionCodec implements PayloadCodec using AES Crypt.

func NewEncryptionCodec

func NewEncryptionCodec(key []byte) (*EncryptionCodec, error)

func (*EncryptionCodec) Decode

func (c *EncryptionCodec) Decode(payloads []*commonpb.Payload) ([]*commonpb.Payload, error)

Decode implements converter.PayloadCodec.Decode.

func (*EncryptionCodec) Encode

func (c *EncryptionCodec) Encode(payloads []*commonpb.Payload) ([]*commonpb.Payload, error)

Encode implements converter.PayloadCodec.Encode.

Jump to

Keyboard shortcuts

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