query

package
v0.0.0-...-811715e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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.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