Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAdapter = errors.New("invalid adapter") ErrInvalidRandom = errors.New("invalid random") ErrInvalidDeviceType = errors.New("invalid device type") )
View Source
var ( ErrInvalidServerInstance = errors.New("invalid server instance") ErrInvalidTextType = errors.New("text type cannot be unknown") )
Functions ¶
func NewBuilder ¶
func NewBuilder() *clientBuilder
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client discover, creates and manages connections to other servers.
func (*Client) ListServers ¶
func (c *Client) ListServers(ctx context.Context) (chan ServerInstance, error)
Looking for other quick share servers and sends their instances to created chan
func (*Client) SendFiles ¶
func (c *Client) SendFiles( ctx context.Context, instance ServerInstance, files []qshare.FilePayload, ) error
Establishes connection to specified server and sends provided files.
type ServerInstance ¶
type ServerInstance struct {
Hostname string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.