Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT. This file was generated at 2021-05-27 13:18:31.038914 -0700 PDT m=+0.005602261
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFailingEventEncryptor ¶ added in v0.10.0
func NewFailingEventEncryptor() *failingEventEncryptor
NewFailingEventEncryptor always errors on Encrypt/Decrypt
func NewRot13Cipher ¶
func NewRot13Cipher() *rotCipher
Types ¶
type CustomerAddedBirth ¶
type CustomerAddedBirth struct { ID string `encrypt:"subject-id"` BirthMonth int `encrypt:"personal-data" serialized:"BirthMonthEncrypted"` BirthYear int `encrypt:"personal-data" serialized:"BirthYearEncrypted"` BirthMonthEncrypted string BirthYearEncrypted string }
CustomerAddedBirth is an event used for testing PII encryption of numeric fields.
func (CustomerAddedBirth) AggregateID ¶
func (e CustomerAddedBirth) AggregateID() string
func (CustomerAddedBirth) AggregateType ¶
func (e CustomerAddedBirth) AggregateType() string
func (*CustomerAddedBirth) Decrypt ¶
func (e *CustomerAddedBirth) Decrypt(encryptor crypto.Encryptor) error
func (*CustomerAddedBirth) Encrypt ¶
func (e *CustomerAddedBirth) Encrypt(encryptor crypto.Encryptor) error
func (CustomerAddedBirth) EventType ¶
func (e CustomerAddedBirth) EventType() string
type CustomerSignedUp ¶
type CustomerSignedUp struct { ID string `encrypt:"subject-id"` Name string `encrypt:"personal-data"` Email string `encrypt:"personal-data"` Status string }
CustomerSignedUp is an event used for testing PII encryption of string fields.
func (CustomerSignedUp) AggregateID ¶
func (e CustomerSignedUp) AggregateID() string
func (CustomerSignedUp) AggregateType ¶
func (e CustomerSignedUp) AggregateType() string
func (*CustomerSignedUp) Decrypt ¶
func (e *CustomerSignedUp) Decrypt(encryptor crypto.Encryptor) error
func (*CustomerSignedUp) Encrypt ¶
func (e *CustomerSignedUp) Encrypt(encryptor crypto.Encryptor) error
func (CustomerSignedUp) EventType ¶
func (e CustomerSignedUp) EventType() string
Click to show internal directories.
Click to hide internal directories.