package
0.0.0-20200715064209-62b9041dabc6
Repository: https://github.com/logicaloverflow/music-sync.git
Documentation: pkg.go.dev

# Functions

ConnectToServer connects to the server at server and returns a MessageSender to communicate with the master.
PingHandler handle a PingMessage.
StartServer starts a music-sync server listening at address and returns a MessageSender to broadcast to clients.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
NewClientHandler is called when a new client connects to the server (with channel -1) and when a client subscribes to a channel.

# Structs

BaseTypedPackageHandler implements all TypedPackageHandlerInterface methods without doing anything.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TypedPackageHandler calls the handle functions of TypedPackageHandlerInterface.

# Interfaces

MessageSender is an interface used to send protobuf messages to clients/the server.
TypedPackageHandlerInterface has methods to handle all packages received.

# Type aliases

No description provided by the author