Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMessageType ¶
type ClientMessageType string
const ( RESPONSE ClientMessageType = "Response" SUBSCRIBE ClientMessageType = "Subscribe" PRODUCE ClientMessageType = "Produce" )
type HttpServer ¶
func NewHttpServer ¶
func NewHttpServer(b *broker.Broker, logger *zap.Logger) *HttpServer
func (*HttpServer) StartHttpServer ¶
func (h *HttpServer) StartHttpServer(port string)
type TCPMessage ¶
type TCPMessage struct { Type ClientMessageType `json:"type"` Payload json.RawMessage `json:"payload"` Queue string `json:"queue"` Enviorment string `json:"enviorment"` Sender string `json:"sender"` Connection *net.Conn }
Click to show internal directories.
Click to hide internal directories.