models

package
v0.0.0-...-9dfd10e Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	gorm.Model

	Username string
	Password string

	Characters []Character
}

Account model

func NewAccount

func NewAccount(username string, securePassowrd string) *Account

NewAccount using username and passowrd

func (*Account) ObfuscatePassword

func (account *Account) ObfuscatePassword()

ObfuscatePassword use Sum256 with sha256 package to obfuscate this password

type Character

type Character struct {
	gorm.Model

	AccountID int
	Account   Account

	Name string
}

Character model

Jump to

Keyboard shortcuts

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