Tapir provides a framework for building Anonymous / metadata resistant Services
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
702 B

  1. package tapir
  2. import (
  3. "cwtch.im/tapir/primitives/core"
  4. )
  5. // Capability defines a status granted to a connection, from an application. That allows the connection to access
  6. // other Application or functions within an Application.
  7. type Capability string
  8. // Application defines the interface for all Tapir Applications
  9. type Application interface {
  10. NewInstance() Application
  11. Init(connection Connection)
  12. Transcript() *core.Transcript
  13. PropagateTranscript(transcript *core.Transcript)
  14. }
  15. // InteractiveApplication defines the interface for interactive Tapir applications (apps that expect the user to send
  16. // and receive messages from)
  17. type InteractiveApplication interface {
  18. Application
  19. Listen()
  20. }