Files
threshold/api/sessions/connection.gen.go
T
Hugo Vieira d206635d74 fix(connection): Make bytes up and down a signed 64-bit integer
This fixes a theoretical issue with database interaction. Because the
fields in the database are signed 64-bit integers, it's theoretically
possible to overflow them if we're using unsigned 64-bit integers in the
application code.
2022-10-26 17:44:28 +01:00

13 lines
535 B
Go

// Code generated by "make api"; DO NOT EDIT.
package sessions
type Connection struct {
ClientTcpAddress string `json:"client_tcp_address,omitempty"`
ClientTcpPort uint32 `json:"client_tcp_port,omitempty"`
EndpointTcpAddress string `json:"endpoint_tcp_address,omitempty"`
EndpointTcpPort uint32 `json:"endpoint_tcp_port,omitempty"`
BytesUp int64 `json:"bytes_up,string,omitempty"`
BytesDown int64 `json:"bytes_down,string,omitempty"`
ClosedReason string `json:"closed_reason,omitempty"`
}