magic-wormhole/src/wormhole/_interfaces.py

46 lines
964 B
Python
Raw Normal View History

from zope.interface import Interface
class IWormhole(Interface):
pass
class IBoss(Interface):
pass
class INameplate(Interface):
pass
class IMailbox(Interface):
pass
class ISend(Interface):
pass
class IOrder(Interface):
pass
class IKey(Interface):
pass
class IReceive(Interface):
pass
class IRendezvousConnector(Interface):
pass
class ILister(Interface):
pass
class ICode(Interface):
pass
class IInput(Interface):
pass
class IAllocator(Interface):
pass
class ITerminator(Interface):
pass
2017-02-22 20:51:53 +00:00
class ITiming(Interface):
pass
2017-03-04 12:07:31 +00:00
class ITorManager(Interface):
pass
2017-03-17 23:50:37 +00:00
class IWordlist(Interface):
def choose_words(length):
"""Randomly select LENGTH words, join them with hyphens, return the
result."""
def get_completions(prefix):
"""Return a list of all suffixes that could complete the given
prefix."""
2017-02-22 20:51:53 +00:00
class IJournal(Interface): # TODO: this needs to be public
pass