Documentation
¶
Index ¶
- type Event
- type EventType
- type SendRequest
- type Service
- func (s *Service) Connect(ctx context.Context, addr string) error
- func (s *Service) ConnectByNickname(ctx context.Context, nickname string) error
- func (s *Service) Events() <-chan Event
- func (s *Service) Send(ctx context.Context, req SendRequest) error
- func (s *Service) Start(ctx context.Context) error
- func (s *Service) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType string
const ( EventPeerFound EventType = "peer_found" EventPeerLost EventType = "peer_lost" EventTextReceived EventType = "text_received" EventFileStart EventType = "file_start" EventFileProgress EventType = "file_progress" EventFileDone EventType = "file_done" EventError EventType = "error" EventReady EventType = "ready" EventLog EventType = "log" )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ConnectByNickname ¶ added in v0.2.8
Click to show internal directories.
Click to hide internal directories.