Documentation ¶
Overview ¶
PuSud's core contains all the logic on how to run PuSud. How to deal with clients, and relays, how to pass messages, etc.
The code isn't that re-usable outside of the app itself.
Index ¶
Constants ¶
View Source
const CLIENT_DEBUG = false
View Source
const INCOMING_BUFFER = 100
Buffer up to this many messages coming in
View Source
const OUTGOING_BUFFER = 100
Buffer up to this many messages going out
Variables ¶
View Source
var DEBUG = false
Functions ¶
func GetSettingsContents ¶
func GetSettingsContents() *[]byte
func SetAuthenticator ¶
func SetAuthenticator(a auth.Authenticator)
Set the active Authenticator, should probably only be called once, from main()
func SetupNetwork ¶
func SetupNetwork(settings *Settings)
func StartListeners ¶
func StartListeners(settings *Settings, authenticator auth.Authenticator)
Types ¶
Click to show internal directories.
Click to hide internal directories.