Tapir provides a framework for building Anonymous / metadata resistant Services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

application.go 702B

123456789101112131415161718192021222324
  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. }