model

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 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 RosterItem

type RosterItem struct {
	User         string
	Contact      string
	Name         string
	Subscription string
	Ask          bool
	Groups       []string
}

RosterItem represents a roster item storage entity.

func (*RosterItem) FromBytes

func (ri *RosterItem) FromBytes(r io.Reader)

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

func (*RosterItem) ToBytes

func (ri *RosterItem) ToBytes(w io.Writer)

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

type RosterNotification

type RosterNotification struct {
	User     string
	Contact  string
	Elements []xml.Element
}

RosterNotification represents a roster subscription pending notification.

func (*RosterNotification) FromBytes

func (rn *RosterNotification) FromBytes(r io.Reader)

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

func (*RosterNotification) ToBytes

func (rn *RosterNotification) ToBytes(w io.Writer)

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

type User

type User struct {
	Username string
	Password string
}

User represents a user storage entity.

func (*User) FromBytes

func (u *User) FromBytes(r io.Reader)

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

func (*User) ToBytes

func (u *User) ToBytes(w io.Writer)

ToBytes 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