model

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockListItem

type BlockListItem struct {
	Username string
	JID      string
}

BlockListItem represents block list item storage entity.

func (*BlockListItem) FromBytes added in v0.7.0

func (bli *BlockListItem) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a BlockListItem entity from its binary representation.

func (*BlockListItem) ToBytes added in v0.7.0

func (bli *BlockListItem) ToBytes(buf *bytes.Buffer) error

ToBytes converts a BlockListItem entity to its binary representation.

type Capabilities added in v0.7.0

type Capabilities struct {
	Node     string
	Ver      string
	Features []string
}

Capabilities represents presence capabilities info

func (*Capabilities) FromBytes added in v0.7.0

func (c *Capabilities) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a Capabilities entity from its binary representation.

func (*Capabilities) HasFeature added in v0.7.0

func (c *Capabilities) HasFeature(feature string) bool

HasFeature returns whether or not Capabilities instance contains a concrete feature

func (*Capabilities) ToBytes added in v0.7.0

func (c *Capabilities) ToBytes(buf *bytes.Buffer) error

ToBytes converts a Capabilities entity to its binary representation.

type User

type User struct {
	Username       string
	Password       string
	LastPresence   *xmpp.Presence
	LastPresenceAt time.Time
}

User represents a user storage entity.

func (*User) FromBytes added in v0.7.0

func (u *User) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a User entity from it's gob binary representation.

func (*User) ToBytes added in v0.7.0

func (u *User) ToBytes(buf *bytes.Buffer) error

ToBytes converts a User entity to it's gob binary representation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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