Versions in this module Expand all Collapse all v1 v1.0.0 Jun 12, 2023 Changes in this version + const Acl_accept + const Acl_reject + const Opt_tls_allowed + const Opt_tls_connection + const Opt_tls_disabled + const Opt_tls_offloading + const Opt_tls_required + type Acl struct + Action int + Value string + type Message struct + Command string + Data []byte + Datalen int + Txnr int + type Options struct + CACertificate string + Certificate string + CnAcl []Acl + Crl string + PrivateKey string + RecvSize int + StreamEscapeLf bool + Tls int + func ValidateOptions(opts *Options) (*Options, error) + type Relp struct + func NewReadWriter(fd io.ReadWriter, options *Options) (*Relp, error) + func NewTcp(tcp_fd net.Conn, options *Options) (*Relp, error) + func (r *Relp) AnswerError(msg *Message, message string) error + func (r *Relp) AnswerMulmtipleOk(msgs []*Message) error + func (r *Relp) AnswerOffer(msg *Message, message string, commands []string) error + func (r *Relp) AnswerOk(msg *Message) error + func (r *Relp) Close() error + func (r *Relp) DecodeOffer(msg *Message) (map[string][]interface{}, error) + func (r *Relp) NegociateOffer(msg *Message, offer map[string][]interface{}) (bool, []string, string) + func (r *Relp) Read(p []byte) (int, error) + func (r *Relp) ReceiveLog() (*Message, error) + func (r *Relp) ReceiveLogAndAck() (string, error) + func (r *Relp) ReceiveMessage() (*Message, error)