query

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Package query handles requests from other internal dendrite components when they interact with the AppServiceQueryAPI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppServiceQueryAPI

type AppServiceQueryAPI struct {
	HTTPClient *http.Client
	Cfg        *config.Dendrite
}

AppServiceQueryAPI is an implementation of api.AppServiceQueryAPI

func (*AppServiceQueryAPI) RoomAliasExists

func (a *AppServiceQueryAPI) RoomAliasExists(
	ctx context.Context,
	request *api.RoomAliasExistsRequest,
	response *api.RoomAliasExistsResponse,
) error

RoomAliasExists performs a request to '/room/{roomAlias}' on all known handling application services until one admits to owning the room

func (*AppServiceQueryAPI) UserIDExists

func (a *AppServiceQueryAPI) UserIDExists(
	ctx context.Context,
	request *api.UserIDExistsRequest,
	response *api.UserIDExistsResponse,
) error

UserIDExists performs a request to '/users/{userID}' on all known handling application services until one admits to owning the user ID

Jump to

Keyboard shortcuts

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