mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/matrixinterface: properly expose GetProvisioning
Some checks failed
Some checks failed
This commit is contained in:
parent
650f9c3139
commit
9d70b2b845
2 changed files with 10 additions and 6 deletions
|
|
@ -96,12 +96,7 @@ func (prov *ProvisioningAPI) GetRouter() *http.ServeMux {
|
|||
return prov.Router
|
||||
}
|
||||
|
||||
type IProvisioningAPI interface {
|
||||
GetRouter() *http.ServeMux
|
||||
GetUser(r *http.Request) *bridgev2.User
|
||||
}
|
||||
|
||||
func (br *Connector) GetProvisioning() IProvisioningAPI {
|
||||
func (br *Connector) GetProvisioning() bridgev2.IProvisioningAPI {
|
||||
return br.Provisioning
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -67,6 +67,15 @@ type MatrixConnectorWithServer interface {
|
|||
GetRouter() *http.ServeMux
|
||||
}
|
||||
|
||||
type IProvisioningAPI interface {
|
||||
GetRouter() *http.ServeMux
|
||||
GetUser(r *http.Request) *User
|
||||
}
|
||||
|
||||
type MatrixConnectorWithProvisioning interface {
|
||||
GetProvisioning() IProvisioningAPI
|
||||
}
|
||||
|
||||
type MatrixConnectorWithPublicMedia interface {
|
||||
GetPublicMediaAddress(contentURI id.ContentURIString) string
|
||||
GetPublicMediaAddressForEvent(ctx context.Context, evt *event.MessageEventContent) (string, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue