query

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	Cfg           *config.AppServiceAPI
	ProtocolCache map[string]api.ASProtocolResponse
	CacheMu       sync.Mutex
}

AppServiceQueryAPI is an implementation of api.AppServiceQueryAPI

func (*AppServiceQueryAPI) Locations

func (a *AppServiceQueryAPI) Locations(
	ctx context.Context,
	req *api.LocationRequest,
	resp *api.LocationResponse,
) error

func (*AppServiceQueryAPI) Protocols

func (a *AppServiceQueryAPI) Protocols(
	ctx context.Context,
	req *api.ProtocolRequest,
	resp *api.ProtocolResponse,
) error

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) User

func (a *AppServiceQueryAPI) User(
	ctx context.Context,
	req *api.UserRequest,
	resp *api.UserResponse,
) error

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