Documentation ¶
Index ¶
- Variables
- type TextileService
- func (s *TextileService) DisconnectFromPeer(p peer.ID) error
- func (s *TextileService) HandleNewStream(stream inet.Stream)
- func (s *TextileService) HandlerForMsgType(t pb.Message_Type) func(peer.ID, *pb.Envelope, interface{}) (*pb.Envelope, error)
- func (s *TextileService) SendMessage(ctx context.Context, p peer.ID, pmes *pb.Envelope) error
- func (s *TextileService) SendRequest(ctx context.Context, p peer.ID, pmes *pb.Envelope) (*pb.Envelope, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReadTimeout = fmt.Errorf("timed out reading response")
View Source
var ReadMessageTimeout = time.Minute * 5
View Source
var TextileProtocol protocol.ID = "/textile/app/1.0.0"
Functions ¶
This section is empty.
Types ¶
type TextileService ¶
type TextileService struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*TextileService) DisconnectFromPeer ¶
func (s *TextileService) DisconnectFromPeer(p peer.ID) error
func (*TextileService) HandleNewStream ¶
func (s *TextileService) HandleNewStream(stream inet.Stream)
func (*TextileService) HandlerForMsgType ¶
func (s *TextileService) HandlerForMsgType(t pb.Message_Type) func(peer.ID, *pb.Envelope, interface{}) (*pb.Envelope, error)
func (*TextileService) SendMessage ¶
func (*TextileService) SendRequest ¶
Click to show internal directories.
Click to hide internal directories.