Documentation
¶
Overview ¶
Package getbalance provides an onion message layer type that makes a request for the current balance of a session.
Index ¶
- Constants
- func NewGetBalance(id nonce.ID, ep *exit.ExitPoint) ont.Onion
- type GetBalance
- func (x *GetBalance) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *GetBalance) Decode(s *splice.Splice) (e error)
- func (x *GetBalance) Encode(s *splice.Splice) (e error)
- func (x *GetBalance) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *GetBalance) Len() int
- func (x *GetBalance) Magic() string
- func (x *GetBalance) Unwrap() interface{}
- func (x *GetBalance) Wrap(inner ont.Onion)
- type GetBalanceParams
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetBalance ¶
type GetBalance 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 ont.Onion }
func (*GetBalance) Len ¶
func (x *GetBalance) Len() int
func (*GetBalance) Magic ¶
func (x *GetBalance) Magic() string
func (*GetBalance) Unwrap ¶
func (x *GetBalance) Unwrap() interface{}
func (*GetBalance) Wrap ¶
func (x *GetBalance) Wrap(inner ont.Onion)
Click to show internal directories.
Click to hide internal directories.