entity

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-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 Authority

type Authority int
const (
	Banned Authority = iota
	Member
	GroupAdmin
	GroupOwner
	Admin
	Owner
)

type Base

type Base struct {
	ID     string
	Name   string
	Avatar string
}

type Group

type Group struct {
	*Base
	Members []*User
}

type Info

type Info struct {
	Protocol string
	Args     []string
}

func ParseInfo

func ParseInfo(str string) (Info, bool)

type Sender

type Sender struct {
	*User
	From *Base
}

type User

type User struct {
	*Base
	Nickname  string
	Age       uint32
	Authority Authority
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳