Documentation
¶
Index ¶
- func AuthHandler(handler http.Handler, accessTokens *accesstoken.CredentialStore) http.Handler
- func ProtocolAndAddress(listenAddr string) (string, string)
- func RedirectHandler(next http.Handler) http.Handler
- func SetEventSwitch(evsw types.EventSwitch, eventables ...types.Eventable)
- type Node
- type NodeGreeting
- type NodeID
- type PrivNodeID
- type SignedNodeGreeting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶ added in v0.2.0
func AuthHandler(handler http.Handler, accessTokens *accesstoken.CredentialStore) http.Handler
func ProtocolAndAddress ¶
Defaults to tcp
func SetEventSwitch ¶
func SetEventSwitch(evsw types.EventSwitch, eventables ...types.Eventable)
Add the event switch to reactors, mempool, etc.
Types ¶
type Node ¶
type Node struct {
cmn.BaseService
// contains filtered or unexported fields
}
func NewNodeDefault ¶
func (*Node) AddListener ¶
Add a Listener to accept inbound peer connections. Add listeners before starting the Node. The first listener is the primary listener (in NodeInfo)
func (*Node) EventSwitch ¶
func (n *Node) EventSwitch() types.EventSwitch
func (*Node) RunForever ¶
func (n *Node) RunForever()
type NodeGreeting ¶
type PrivNodeID ¶
func (*PrivNodeID) SignGreeting ¶
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting
type SignedNodeGreeting ¶
type SignedNodeGreeting struct {
NodeGreeting
Signature crypto.Signature
}
Click to show internal directories.
Click to hide internal directories.