groups

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServerList is a json encoded list of servers
	ServerList = event.Field("ServerList")
)
View Source
const (
	// UpdateServerInfo is an event containing a ProfileOnion and a ServerList
	UpdateServerInfo = event.Type("UpdateServerInfo")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupFunctionality

type GroupFunctionality struct {
}

GroupFunctionality provides experiment gated server functionality

func ExperimentGate

func ExperimentGate(experimentMap map[string]bool) (*GroupFunctionality, error)

ExperimentGate returns GroupFunctionality if the experiment is enabled, and an error otherwise.

func (*GroupFunctionality) GetServerInfo

func (gf *GroupFunctionality) GetServerInfo(serverOnion string, profile peer.CwtchPeer) Server

GetServerInfo compiles all the information the UI might need regarding a particular server including any verified cryptographic keys

func (*GroupFunctionality) GetServerInfoList

func (gf *GroupFunctionality) GetServerInfoList(profile peer.CwtchPeer) []Server

GetServerInfoList compiles all the information the UI might need regarding all servers..

type Server

type Server struct {
	Onion        string      `json:"onion"`
	Identifier   int         `json:"identifier"`
	Status       string      `json:"status"`
	Description  string      `json:"description"`
	Keys         []ServerKey `json:"keys"`
	SyncProgress SyncStatus  `json:"syncProgress"`
}

type ServerKey

type ServerKey struct {
	Type string `json:"type"`
	Key  string `json:"key"`
}

type SyncStatus added in v1.8.0

type SyncStatus struct {
	StartTime       string `json:"startTime"`
	LastMessageTime string `json:"lastMessageTime"`
}

Jump to

Keyboard shortcuts

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