Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PagePasswords ¶
Types ¶
type BasePassword ¶
type Controller ¶
func (Controller) CreatePassword ¶
func (ct Controller) CreatePassword(c echo.Context) error
func (Controller) DeletePassword ¶
func (ct Controller) DeletePassword(c echo.Context) error
func (Controller) GetPasswords ¶
func (ct Controller) GetPasswords(c echo.Context) error
func (Controller) UpdatePassword ¶
func (ct Controller) UpdatePassword(c echo.Context) error
type DB ¶
type DB interface { Exec(query string, args ...interface{}) (sql.Result, error) Query(query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row Prepare(query string) (*sql.Stmt, error) }
DB groups transaction like objects
type GetPasswordsOut ¶
type GetPasswordsOut map[int64]PublicPassword
type Password ¶
type Password struct { BasePassword PasswordCrypted []byte `json:"password_crypted,omitempty"` }
func SelectPassword ¶
SelectPassword returns the entry matching id.
func (Password) Delete ¶
Deletes Password in the database and returns the item. Only the field 'Id' is used.
func (Password) Publie ¶
func (pa Password) Publie() (PublicPassword, error)
type Passwords ¶
func SelectAllPasswords ¶
func (Passwords) Publie ¶
func (passs Passwords) Publie() (GetPasswordsOut, error)
type PublicPassword ¶
type PublicPassword struct { BasePassword Password string `json:"password"` }
func (PublicPassword) Crypte ¶
func (ppa PublicPassword) Crypte() (Password, error)
Click to show internal directories.
Click to hide internal directories.