fixtures

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	kallax.Model `table:"emails"`
	Address      string
	Primary      bool
}

type Password

type Password string

func (*Password) Set

func (p *Password) Set(pwd string)

Kids, don't do this at home

type Settings

type Settings struct {
	NotificationsActive bool
	NotifyByEmail       bool
}

type User

type User struct {
	kallax.Model `table:"users"`
	Username     string
	Email        string
	Password     Password
	Websites     []string
	Emails       []*Email
	Settings     *Settings
}

Jump to

Keyboard shortcuts

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