model

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 1 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"`
}

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

func (*User) SetID

func (u *User) SetID(id uint64)

SetID defines new ID

Jump to

Keyboard shortcuts

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