mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-08 08:21:12 +02:00
Initial open source release
This commit is contained in:
commit
11cf01f08e
488 files changed
+97180
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package server
|
||||
|
||||
// StartupMessage is the status of the server startup
|
||||
type StartupMessage struct {
|
||||
Success bool
|
||||
Error error
|
||||
}
|
||||
|
||||
// NewStartupMessage creates a new StartupMessage
|
||||
func NewStartupMessage(
|
||||
success bool,
|
||||
err error,
|
||||
) StartupMessage {
|
||||
return StartupMessage{
|
||||
Success: success,
|
||||
Error: err,
|
||||
}
|
||||
}
|
||||
|
||||
func NewStartupMessageChannel() chan StartupMessage {
|
||||
return make(chan StartupMessage, 1)
|
||||
}
|
||||
Reference in new issue
Block a user