Documentation ¶
Overview ¶
Package ribbon is named after the NetflixOSS routing and load balancing project, functions for routing traffic
Index ¶
- type Router
- func (r *Router) Add(name string, c chan gotocol.Message, t time.Time)
- func (r *Router) All(p string) *Router
- func (r *Router) Len() int
- func (r *Router) NameChan(ch chan gotocol.Message) string
- func (r *Router) Named(n string) chan gotocol.Message
- func (r *Router) Names() (ns []string)
- func (r *Router) Pick(p string) chan gotocol.Message
- func (r *Router) Random() chan gotocol.Message
- func (r *Router) Remove(name string)
- func (r Router) String() (s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router tracks times and channels
Click to show internal directories.
Click to hide internal directories.