mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
Add push server component template
This commit is contained in:
parent
092edee210
commit
6843c3beee
22 changed files with 487 additions and 0 deletions
36
pushserver/internal/api.go
Normal file
36
pushserver/internal/api.go
Normal file
|
@ -0,0 +1,36 @@
|
|||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/matrix-org/dendrite/pushserver/api"
|
||||
"github.com/matrix-org/dendrite/pushserver/storage"
|
||||
"github.com/matrix-org/dendrite/setup/config"
|
||||
)
|
||||
|
||||
// PushserverInternalAPI implements api.PushserverInternalAPI
|
||||
type PushserverInternalAPI struct {
|
||||
DB storage.Database
|
||||
Cfg *config.PushServer
|
||||
}
|
||||
|
||||
func NewPushserverAPI(
|
||||
cfg *config.PushServer, pushserverDB storage.Database,
|
||||
) *PushserverInternalAPI {
|
||||
a := &PushserverInternalAPI{
|
||||
DB: pushserverDB,
|
||||
Cfg: cfg,
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
// SetRoomAlias implements RoomserverAliasAPI
|
||||
func (p *PushserverInternalAPI) QueryExample(
|
||||
ctx context.Context,
|
||||
request *api.QueryExampleRequest,
|
||||
response *api.QueryExampleResponse,
|
||||
) error {
|
||||
// Implement QueryExample here!
|
||||
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue