syncconsumer

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0, MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination, domain string,
	rpcCli *common.RpcClient,
) external.GetFedDownloadResponse

func GetAliasRoomID

func GetAliasRoomID(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) external.GetDirectoryRoomAliasResponse

func GetAvatar

func GetAvatar(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) external.GetAvatarURLResponse

func GetDisplayName

func GetDisplayName(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) external.GetDisplayNameResponse

func GetProfile

func GetProfile(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) external.GetProfileResponse

func GetUserInfo

func GetUserInfo(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) external.GetUserInfoResponse

func MakeJoin

func MakeJoin(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) gomatrixserverlib.RespMakeJoin

func MakeLeave

func MakeLeave(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) gomatrixserverlib.RespMakeLeave

func SendInvite

func SendInvite(
	ctx context.Context,
	fedClient *client.FedClientWrap,
	request *roomserverapi.FederationEvent,
	destination string,
) gomatrixserverlib.RespInvite

Types

type FedEventExtra

type FedEventExtra struct {
	FedEvent roomserverapi.FederationEvent
	Subject  string
}

type ProfileRpcConsumer

type ProfileRpcConsumer struct {
	// contains filtered or unexported fields
}

func NewProfileRpcConsumer

func NewProfileRpcConsumer(
	cfg *config.Fed,
	fedClient *client.FedClientWrap,
	rpcClient *common.RpcClient,
	feddomain *common.FedDomains,
) *ProfileRpcConsumer

func (*ProfileRpcConsumer) GetTopic

func (s *ProfileRpcConsumer) GetTopic() string

func (*ProfileRpcConsumer) Start

func (s *ProfileRpcConsumer) Start() error

type RpcResponse

type RpcResponse struct {
	Error   string
	Payload interface{}
}

type SyncConsumer

type SyncConsumer struct {
	// contains filtered or unexported fields
}

func NewSyncConsumer

func NewSyncConsumer(
	cfg *config.Fed,
	fedClient *client.FedClientWrap,
	rpcClient *common.RpcClient,
	feddomains *common.FedDomains,
) *SyncConsumer

func (*SyncConsumer) SetBackfill

func (s *SyncConsumer) SetBackfill(bfp backfilltypes.BackFillProcessor)

func (*SyncConsumer) Start

func (s *SyncConsumer) Start() error

Jump to

Keyboard shortcuts

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