model

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.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 entity.

type ClusterMember added in v0.50.0

type ClusterMember struct {
	InstanceID string
	Host       string
	Port       int
	APIVer     *version.SemanticVersion
}

ClusterMember represents a cluster instance address and port.

func (*ClusterMember) String added in v0.50.0

func (m *ClusterMember) String() string

String returns Member string representation.

type Resource added in v0.50.0

type Resource struct {
	InstanceID string
	JID        *jid.JID
	Presence   *stravaganza.Presence
	Context    map[string]string
}

Resource represents a resource entity.

func (*Resource) IsAvailable added in v0.50.0

func (r *Resource) IsAvailable() bool

IsAvailable returns presence available value.

func (*Resource) Priority added in v0.50.0

func (r *Resource) Priority() int8

Priority returns resource presence priority.

type User

type User struct {
	Username string
	Scram    struct {
		SHA1           string
		SHA256         string
		SHA512         string
		SHA3512        string
		Salt           string
		IterationCount int
		PepperID       string
	}
}

User represents a user entity.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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