Documentation ¶
Overview ¶
Package query handles requests from other internal dendrite components when they interact with the AppServiceQueryAPI.
Index ¶
- type AppServiceQueryAPI
- func (a *AppServiceQueryAPI) Locations(ctx context.Context, req *api.LocationRequest, resp *api.LocationResponse) error
- func (a *AppServiceQueryAPI) Protocols(ctx context.Context, req *api.ProtocolRequest, resp *api.ProtocolResponse) error
- func (a *AppServiceQueryAPI) RoomAliasExists(ctx context.Context, request *api.RoomAliasExistsRequest, ...) error
- func (a *AppServiceQueryAPI) User(ctx context.Context, req *api.UserRequest, resp *api.UserResponse) error
- func (a *AppServiceQueryAPI) UserIDExists(ctx context.Context, request *api.UserIDExistsRequest, ...) error
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 ¶ 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
Click to show internal directories.
Click to hide internal directories.