model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2018 License: MPL-2.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 added in v0.2.0

type BlockListItem struct {
	Username string
	JID      string
}

BlockListItem represents block list item storage entity.

func (*BlockListItem) FromGob added in v0.2.0

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

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

func (*BlockListItem) ToGob added in v0.2.0

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

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

type GobDeserializer added in v0.2.0

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

GobDeserializer represents a Gob deserializable entity.

type GobSerializer added in v0.2.0

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

GobSerializer represents a Gob serializable entity.

type RosterItem

type RosterItem struct {
	Username     string
	JID          string
	Name         string
	Subscription string
	Ask          bool
	Ver          int
	Groups       []string
}

RosterItem represents a roster item storage entity.

func (*RosterItem) FromGob added in v0.2.0

func (ri *RosterItem) FromGob(dec *gob.Decoder)

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

func (*RosterItem) ToGob added in v0.2.0

func (ri *RosterItem) ToGob(enc *gob.Encoder)

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

type RosterNotification

type RosterNotification struct {
	Contact  string
	JID      string
	Elements []xml.XElement
}

RosterNotification represents a roster subscription pending notification.

func (*RosterNotification) FromGob added in v0.2.0

func (rn *RosterNotification) FromGob(dec *gob.Decoder)

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

func (*RosterNotification) ToGob added in v0.2.0

func (rn *RosterNotification) ToGob(enc *gob.Encoder)

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

type RosterVersion added in v0.2.0

type RosterVersion struct {
	Ver         int
	DeletionVer int
}

RosterVersion represents a roster version info.

func (*RosterVersion) FromGob added in v0.2.0

func (rv *RosterVersion) FromGob(dec *gob.Decoder)

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

func (*RosterVersion) ToGob added in v0.2.0

func (rv *RosterVersion) ToGob(enc *gob.Encoder)

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

type User

type User struct {
	Username        string
	Password        string
	LoggedOutStatus string
	LoggedOutAt     time.Time
}

User represents a user storage entity.

func (*User) FromGob added in v0.2.0

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

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

func (*User) ToGob added in v0.2.0

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

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

Jump to

Keyboard shortcuts

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