identity

package
v0.0.0-...-5508e09 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package identity is an example of custom ADT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cryptex

type Cryptex Identity

AnyT is generic definition of sensitive structures

func (Cryptex) MarshalDynamoDBAttributeValue

func (value Cryptex) MarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) (err error)

MarshalDynamoDBAttributeValue implements automatic encryption of sensitive strings during data marshalling.

func (Cryptex) MarshalJSON

func (value Cryptex) MarshalJSON() (bytes []byte, err error)

MarshalJSON implements automatic encryption of sensitive strings during data marshalling.

func (Cryptex) PlainText

func (value Cryptex) PlainText() Identity

PlainText returns plain text value

func (*Cryptex) UnmarshalDynamoDBAttributeValue

func (value *Cryptex) UnmarshalDynamoDBAttributeValue(av *dynamodb.AttributeValue) error

UnmarshalDynamoDBAttributeValue implements automatic decryption of data

func (*Cryptex) UnmarshalJSON

func (value *Cryptex) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON implements automatic decryption of data

type Identity

type Identity struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	PinCode  int    `json:"pincode"`
}

Identity is example data type

Jump to

Keyboard shortcuts

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