model

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       uint64 `json:"id"`
	Login    string `json:"login"`
	Password string `json:"password,omitempty"`
}

User of the app

var NoneUser User

NoneUser is a dummy user

func NewUser

func NewUser(id uint64, login string) User

NewUser creates new user with given id, login and profiles

Jump to

Keyboard shortcuts

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