pas/Constants/constants.go

35 lines
770 B
Go

package Constants
type Method string
type OperationSuccessClassification string
const (
UNKNOWN Method = "wtf bro"
GET Method = "GET"
POST Method = "POST"
)
const (
OK OperationSuccessClassification = "OK"
INTERNALSERVERERROR OperationSuccessClassification = "SERVERSHATITSELF"
BADREQUEST OperationSuccessClassification = "BRUH"
NOTFOUND OperationSuccessClassification = "NOTFOUND"
)
type Request struct {
Intent Intent
Body string
}
type Response struct {
OperationSuccessClassification OperationSuccessClassification
ResponseHeader map[string]string
Body string
}
type Intent struct {
Method Method
Path string
Version string
Headers map[string]string
}