models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Staple

type Staple struct {
	Name      string    `json:"name"`
	ID        int       `json:"id"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	Archived  bool      `json:"archived"`
}

Staple defines a Staple in the system.

type User

type User struct {
	// Email will be used as username.
	Email string `json:"email"`
	// Password
	Password string `json:"password"`
	// Confirm code -- ignore in json
	ConfirmCode string `json:"-"`
	// Maximum number of staples
	MaxStaples int `json:"max_staples"`
}

User defines a user of the system.

Jump to

Keyboard shortcuts

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