Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ngin ¶
type Ngin interface { HandleMessage(s *splice.Splice, pr Onion) GetLoad() byte SetLoad(byte) Mgr() *sess.Manager Pending() *responses.Pending GetHidden() *hidden.Hidden WaitForShutdown() <-chan struct{} Keyset() *crypto.KeySet }
Ngin is the generic interface for onion encoders to access the engine without tying the dependencies together.
type Onion ¶
type Onion interface { coding.Codec Wrap(inner Onion) Handle(s *splice.Splice, p Onion, ni Ngin) (e error) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data) }
Onion are messages that can be layered over each other and have a set of processing instructions for the data in them, and, if relevant, how to account for them in sessions.
Click to show internal directories.
Click to hide internal directories.