Documentation ¶
Index ¶
- func NewCipherReader(underlying io.Reader, iv []byte) io.Reader
- func NewCipherWriter(underlying io.Writer, iv []byte) io.Writer
- func NewClientCodec(conn io.ReadWriteCloser, iv []byte) rpc.ClientCodec
- func NewServerCodec(conn io.ReadWriteCloser, iv []byte) rpc.ServerCodec
- type CipherRWC
- type Client
- type RWC
- type Server
- func (s *Server) Authorize(w http.ResponseWriter, r *http.Request) (secure []byte, ok bool)
- func (s *Server) Close()
- func (s *Server) Listen(address string) error
- func (s *Server) ListenAll() (e error)
- func (s *Server) ListenTo(network string, address string) error
- func (s *Server) Register(name string, receiver any) error
- func (s *Server) RpcHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) Serve(listener net.Listener) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientCodec ¶
func NewClientCodec(conn io.ReadWriteCloser, iv []byte) rpc.ClientCodec
func NewServerCodec ¶
func NewServerCodec(conn io.ReadWriteCloser, iv []byte) rpc.ServerCodec
Types ¶
type CipherRWC ¶
type CipherRWC struct {
// contains filtered or unexported fields
}
func NewCipherRWC ¶
func NewCipherRWC(underlying io.ReadWriteCloser, iv []byte) *CipherRWC
type Client ¶
Click to show internal directories.
Click to hide internal directories.