model

package
v0.0.0-...-14137fd Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	ID        int    `json:"id,omitempty"`
	SheetID   int    `json:"sheetId,omitempty"`
	Label     string `json:"label,omitempty"`
	Content   string `json:"content,omitempty"`
	CreatedAt string `json:"createdAt,omitempty"`
}

type Sheet

type Sheet struct {
	ID        int       `json:"id,omitempty"`
	UserID    int       `json:"userId,omitempty"`
	Name      string    `json:"name,omitempty"`
	CreatedAt string    `json:"createdAt,omitempty"`
	Segments  []Segment `json:"segments,omitempty"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

type User

type User struct {
	ID       int    `json:"id,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"-"`
	jwt.StandardClaims
}

type UserData

type UserData struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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