package
0.0.0-20241008100327-50a850cf9b5b
Repository: https://github.com/go-fox/fox.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package base MIT License # Copyright (c) 2024 go-fox Author https://github.com/go-fox/fox Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
No description provided by the author

# Functions

FromPeerContext returns the peer information in ctx if it exists.
Get is get a selector builder.
GetAll is get all selector builder.
NewPeerContext creates a new context with peer information attached.
Register register selector builder.
WithNodeFilter setting node filter.

# Variables

ErrNoAvailable is no available node.

# Structs

DoneInfo is callback info when RPC invoke done.
Peer contains the information of the peer for an RPC, such as the address and authentication information.
SelectOptions select options.

# Interfaces

Balancer is balancer interface.
BalancerBuilder build balancer.
Builder is selector builder.
Node node interface.
ReplyMD is a Reply Metadata.
Selector is node pick balancer.
Storage is node storage.
WeightedNode calculates scheduling weight in real time.
WeightedNodeBuilder is weightedNode builder.

# Type aliases

DoneFunc refactor balance.DoneFunc.
NodeFilter node filter, if return false this node is delete.
SelectOption select option.