objects

package
v0.0.0-...-4f159c3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: AGPL-3.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 MenuId int
const (
	Menu_Init        MenuId = 100
	Menu_AskLocation MenuId = 200
	Menu_Feed        MenuId = 300
	Menu_Post        MenuId = 400
	Menu_Ban         MenuId = 999999
)

type Post

type Post struct {
	PostId    int64
	UserId    int64
	Text      string
	Lon       float64
	Lat       float64
	ReportCnt int
}

type User

type User struct {
	UserId       int64
	MenuId       MenuId
	Username     string
	FirstName    string
	LastName     string
	Lon          float64
	Lat          float64
	LanguageCode string
	ReportCnt    int
	ShadowBanned bool
	// contains filtered or unexported fields
}

func (*User) Locale

func (u *User) Locale() *gotext.Locale

Jump to

Keyboard shortcuts

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