model

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: GPL-3.0 Imports: 3 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) FromGob

func (bli *BlockListItem) FromGob(dec *gob.Decoder)

FromGob deserializes a BlockListItem entity from it's gob binary representation.

func (*BlockListItem) ToGob

func (bli *BlockListItem) ToGob(enc *gob.Encoder)

ToGob converts a BlockListItem entity to it's gob binary representation.

type GobDeserializer

type GobDeserializer interface {
	FromGob(dec *gob.Decoder)
}

GobDeserializer represents a Gob deserializable entity.

type GobSerializer

type GobSerializer interface {
	ToGob(enc *gob.Encoder)
}

GobSerializer represents a Gob serializable entity.

type User

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

User represents a user storage entity.

func (*User) FromGob

func (u *User) FromGob(dec *gob.Decoder)

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

func (*User) ToGob

func (u *User) ToGob(enc *gob.Encoder)

ToGob 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