Added type aliases for response values

This commit is contained in:
Matthias Fulz 2019-10-22 15:36:14 +02:00
parent a6c43af8bb
commit 2b5618714c
1 changed files with 12 additions and 8 deletions

View File

@ -4,22 +4,26 @@ import (
"sync"
)
const (
AIN uint8 = 0
AOUT uint8 = 1
AINOUT uint8 = 2
)
type argumentType uint8
const (
OK uint8 = 0
ERR uint8 = 1
AIN argumentType = 0
AOUT argumentType = 1
AINOUT argumentType = 2
)
type responseStatus uint8
const (
OK responseStatus = 0
ERR responseStatus = 1
)
var RESPONSE_HEADER_SIZE = int32(9)
type responseHeader struct {
size int64
status uint8
status responseStatus
}
type Server struct {