query

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 11 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 {
	Cfg           *config.AppServiceAPI
	ProtocolCache map[string]api.ASProtocolResponse
	CacheMu       sync.Mutex
}

AppServiceQueryAPI is an implementation of api.AppServiceQueryAPI

func (*AppServiceQueryAPI) Locations added in v0.10.7

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

func (*AppServiceQueryAPI) Protocols added in v0.10.7

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 added in v0.10.7

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