Documentation ¶ Index ¶ type AESClient func NewAESClient(ac *AESConfig) (*AESClient, error) func (ac *AESClient) Decrypt(ctx context.Context, data []byte) ([]byte, error) func (ac *AESClient) Encrypt(ctx context.Context, data []byte) ([]byte, error) type AESConfig func NewAESConfig(key string) (*AESConfig, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AESClient ¶ type AESClient struct { // contains filtered or unexported fields } func NewAESClient ¶ func NewAESClient(ac *AESConfig) (*AESClient, error) func (*AESClient) Decrypt ¶ func (ac *AESClient) Decrypt(ctx context.Context, data []byte) ([]byte, error) func (*AESClient) Encrypt ¶ func (ac *AESClient) Encrypt(ctx context.Context, data []byte) ([]byte, error) type AESConfig ¶ type AESConfig struct { Key []byte `json:"key"` } func NewAESConfig ¶ func NewAESConfig(key string) (*AESConfig, error) Source Files ¶ View all Source files encryption.go Click to show internal directories. Click to hide internal directories.