Documentation
¶
Overview ¶
Package response provides a message type in response to an Exit message.
Index ¶
- Constants
- func Gen() codec.Codec
- func New(id nonce.ID, port uint16, res slice.Bytes, load byte) ont.Onion
- type Response
- func (x *Response) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *Response) Decode(s *splice.Splice) (e error)
- func (x *Response) Encode(s *splice.Splice) (e error)
- func (x *Response) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *Response) Len() int
- func (x *Response) Magic() string
- func (x *Response) Unwrap() interface{}
- func (x *Response) Wrap(inner ont.Onion)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct { // ID of the Exit message. ID nonce.ID // Port of the Exit service. Port uint16 // Load of the Exit relay. Load byte // Bytes of the Response to the Exit request message. slice.Bytes }
Response is a reply to an Exit message.
func (*Response) Account ¶
func (x *Response) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
Account for an Response.
TODO: this is supposed to affect half the exit fee and the two hops following.
func (*Response) Handle ¶
Handle provides the relay switching logic for an engine handling an Response message.
func (*Response) Len ¶
Len returns the length of the onion starting from this one (used to size a Splice).
Click to show internal directories.
Click to hide internal directories.