working on messaging library, adding branching options to client

This commit is contained in:
2020-06-02 17:08:44 -04:00
parent 33b1c78eb2
commit 0276a1d776
14 changed files with 89 additions and 135 deletions

View File

@@ -1,7 +0,0 @@
module github.com/deranjer/gvc/messages
go 1.14
replace derajnet.duckdns.org/git/deranjer/gvc => ../gvc //alias for local development
replace github.com/deranjer/gvc => ../gvc

View File

@@ -5,7 +5,9 @@ type ID int
// ID forces all these commands to be locked in
const (
COMMIT ID = iota
ERROR ID = iota
COMMIT
CONNECTED
REFRESH
INFO
PUSH
@@ -17,7 +19,7 @@ const (
// Modifiers contains any arguments/modifiers to the command ID
type Modifiers struct {
ModifierID string
ModifierData string
ModifierData func()
}
// Command is the structure that all messages must adhere to