Documentation ¶
Overview ¶
Package exit is an onion message type that contains a payload intended to be forwarded to the exit service of a relay.
Index ¶
- Constants
- func NewExit(id nonce.ID, port uint16, payload slice.Bytes, ep *ExitPoint) ont.Onion
- type Exit
- func (x *Exit) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *Exit) Decode(s *splice.Splice) (e error)
- func (x *Exit) Encode(s *splice.Splice) (e error)
- func (x *Exit) GetOnion() interface{}
- func (x *Exit) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *Exit) Len() int
- func (x *Exit) Magic() string
- func (x *Exit) Wrap(inner ont.Onion)
- type ExitParams
- type ExitPoint
- type Routing
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exit ¶
type Exit struct { ID nonce.ID // Ciphers is a set of 3 symmetric ciphers that are to be used in their // given order over the reply message from the service. crypto.Ciphers // Nonces are the nonces to use with the cipher when creating the // encryption for the reply message, // they are common with the crypts in the header. crypto.Nonces // Port identifies the type of service as well as being the port used by // the service to be relayed to. Notice there is no IP address, this is // because Indranet only forwards to exits of decentralised services // also running on the same machine. This service could be a proxy, of // course, if configured this way. This could be done by tunneling from // a local Socks5 proxy into Indranet and the exit node also having // this. Port uint16 // Bytes are the message to be passed to the exit service. slice.Bytes ont.Onion }
type ExitParams ¶
Click to show internal directories.
Click to hide internal directories.