models

package
v0.0.0-...-e8836e2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 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 Error

type Error struct {
	Error string `json:"error"`
}
type Link struct {
	Title    string `json:"title"`
	URL      string `json:"url"`
	Count    int    `json:"count"`
	ApiPoint string `json:"api_point"`
	User     UserInfo

	Shared
}

type Shared

type Shared struct {
	Id        string    `json:"id"`
	CreatedAt time.Time `json:"-"`
}

type Token

type Token struct {
	Name string `json:"name"`
	Id   string `json:"id"`
	jwt.StandardClaims
}

type UserConn

type UserConn struct {
	Name     string `json:"name"`
	Password string `json:"password"`

	Shared
}

func (UserConn) ToUserInfo

func (uc UserConn) ToUserInfo() UserInfo

type UserInfo

type UserInfo struct {
	Name string `json:"name"`
	Id   string `json:"id"`
}

Jump to

Keyboard shortcuts

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