Initial Commit

This commit is contained in:
2022-05-01 01:39:22 -07:00
commit 3a91648f70
12 changed files with 1594 additions and 0 deletions

18
internal/types/types.go Normal file
View File

@@ -0,0 +1,18 @@
package types
// Request represents a request sent to the server
type Request struct {
ID string
Receiver string
Method string
Arg any
}
// Response represents a response returned by the server
type Response struct {
ID string
IsChannel bool
IsError bool
Error string
Return any
}