Documentation
¶
Index ¶
- type Client
- func (c *Client) ReadResponseMessage(resp any, data []byte, ePubKey *bcrypt.NoisePublicKey, t int64) error
- func (c *Client) SetClientPrivateKey(pk bcrypt.NoisePrivateKey)
- func (c *Client) SetServerPublicKey(pk bcrypt.NoisePublicKey)
- func (c *Client) WriteRequestMessage(dst []byte, serviceName string, req any, ePubKeyOut *bcrypt.NoisePublicKey, ...) (dataOut []byte, err error)
- type LogicError
- type RpcClient
- type Server
- func (s *Server) AddClientPublicKey(pks ...bcrypt.NoisePublicKey)
- func (s *Server) ClearClientPublicKey()
- func (s *Server) Register(rcvr any) error
- func (s *Server) RegisterName(name string, rcvr any) error
- func (s *Server) RemoveClientPublicKey(pk bcrypt.NoisePublicKey)
- func (s *Server) ServeConn(rw io.ReadWriter) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (s *Server) ServeListener(l net.Listener, connCallback func(net.Conn) error) error
- func (s *Server) SetServerPrivateKey(pk bcrypt.NoisePrivateKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ReadResponseMessage ¶
func (*Client) SetClientPrivateKey ¶
func (c *Client) SetClientPrivateKey(pk bcrypt.NoisePrivateKey)
func (*Client) SetServerPublicKey ¶
func (c *Client) SetServerPublicKey(pk bcrypt.NoisePublicKey)
type LogicError ¶
type LogicError string
func (LogicError) Error ¶
func (e LogicError) Error() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddClientPublicKey ¶
func (s *Server) AddClientPublicKey(pks ...bcrypt.NoisePublicKey)
func (*Server) ClearClientPublicKey ¶
func (s *Server) ClearClientPublicKey()
func (*Server) RemoveClientPublicKey ¶
func (s *Server) RemoveClientPublicKey(pk bcrypt.NoisePublicKey)
func (*Server) ServeListener ¶
func (*Server) SetServerPrivateKey ¶
func (s *Server) SetServerPrivateKey(pk bcrypt.NoisePrivateKey)
Click to show internal directories.
Click to hide internal directories.