mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:56:05 -04:00
Add stub ApplicationServiceApi and glue it with the handler.
This commit is contained in:
parent
94a5db9f4d
commit
17753f0c20
4 changed files with 39 additions and 4 deletions
|
@ -13,3 +13,24 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
|
||||
class ApplicationServiceApi(object):
|
||||
"""This class manages HS -> AS communications, including querying and
|
||||
pushing.
|
||||
"""
|
||||
|
||||
def __init__(self, hs):
|
||||
self.hs_token = "_hs_token_" # TODO extract hs token
|
||||
|
||||
def query_user(self, service, user_id):
|
||||
pass
|
||||
|
||||
def query_alias(self, service, alias):
|
||||
pass
|
||||
|
||||
def push_bulk(self, service, events):
|
||||
pass
|
||||
|
||||
def push(self, service, event):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue