models

package
v0.1.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyVal

type KeyVal struct {
	ID int    `json:"-" gorm:"primary_key"`
	U  string `gorm:"size:250;not null" json:"-"`
	K  string `gorm:"size:250;not null" json:"key"`
	V  string `gorm:"not null" sql:"type:text" json:"value"`
}

func (KeyVal) Decrypt

func (kv KeyVal) Decrypt(passphrase string) KeyVal

func (KeyVal) Encrypt

func (kv KeyVal) Encrypt(passphrase string) KeyVal

Jump to

Keyboard shortcuts

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