Documentation ¶
Overview ¶
This file is part of fingerpoken Copyright (C) 2015 Jordan Sissel
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of fingerpoken Copyright (C) 2015 Jordan Sissel
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of fingerpoken Copyright (C) 2015 Jordan Sissel
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
This file is part of fingerpoken Copyright (C) 2015 Jordan Sissel
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Constants
- func HandleZWS(w http.ResponseWriter, r *http.Request)
- func ProxyDealer(ws *websocket.Conn, zmq *czmq.Sock)
- func ProxyReqRep(ws *websocket.Conn, zmq *czmq.Sock)
- func ProxyReqRep1(ws *websocket.Conn, zmq *czmq.Sock) error
- func ProxyReqRep2(ws *websocket.Conn, zmq *czmq.Sock) error
- func ProxySub(ws *websocket.Conn, zmq *czmq.Sock)
- func WStoZMQ(ws *websocket.Conn, zmq *czmq.Sock)
- func ZMQtoWS(ws *websocket.Conn, zmq *czmq.Sock)
- type InvalidMessageTypeError
- type InvalidMoreFlagError
- type InvalidSocketTypeError
- type SocketType
- type ZWS
- type ZWSRequestInvalidTypeParameterError
- type ZWSRequestMissingTypeParameterError
- type ZeroMQSocketCreationError
Constants ¶
const ( INVALID = iota REQ = iota DEALER = iota SUB = iota )
const ( FINAL_FRAME = '0' MORE_FRAME = '1' )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InvalidMessageTypeError ¶
type InvalidMessageTypeError struct {
MessageType int
}
func (*InvalidMessageTypeError) Error ¶
func (e *InvalidMessageTypeError) Error() string
type InvalidMoreFlagError ¶
type InvalidMoreFlagError struct {
Flag byte
}
func (*InvalidMoreFlagError) Error ¶
func (e *InvalidMoreFlagError) Error() string
type InvalidSocketTypeError ¶
type InvalidSocketTypeError struct {
SocketType SocketType
}
func (*InvalidSocketTypeError) Error ¶
func (e *InvalidSocketTypeError) Error() string
type SocketType ¶
type SocketType int8
func ParseSocketType ¶
func ParseSocketType(name string) (SocketType, error)
func (*SocketType) Create ¶
func (s *SocketType) Create(endpoint string) (sock *czmq.Sock, err error)
func (*SocketType) EndpointSuffix ¶
func (s *SocketType) EndpointSuffix() (string, error)
func (*SocketType) String ¶
func (s *SocketType) String() string
type ZWSRequestInvalidTypeParameterError ¶
func (*ZWSRequestInvalidTypeParameterError) Error ¶
func (e *ZWSRequestInvalidTypeParameterError) Error() string
type ZWSRequestMissingTypeParameterError ¶
func (*ZWSRequestMissingTypeParameterError) Error ¶
func (e *ZWSRequestMissingTypeParameterError) Error() string
type ZeroMQSocketCreationError ¶
type ZeroMQSocketCreationError struct {
Cause error
}
func (*ZeroMQSocketCreationError) Error ¶
func (e *ZeroMQSocketCreationError) Error() string