{"modulePath":"github.com/pipeproxy/pipe","version":"v0.7.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package lb\n\n## Variables\n\n```go\nvar (\n\tErrNotHandler = fmt.Errorf(\"error not handler\")\n)\n```\n\n## Functions\n\n```go\nfunc NewLBWithConfig(conf *Config) (stream.Handler, error)\n```\n\n## Types\n\n```go\ntype Config struct {\n\tPolicy   balance.Policy\n\tHandlers []*Weight\n}\n```\n\n```go\ntype LB struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewLB(policy balance.Policy, handlers []stream.Handler) *LB\n```\n\n```go\nfunc (l *LB) ServeStream(ctx context.Context, stm stream.Stream)\n```\n\n```go\ntype Weight struct {\n\tWeight  uint `json:\",omitempty\"`\n\tHandler stream.Handler\n}\n```\n\n","path":"github.com/pipeproxy/pipe/components/stream/handler/lb","name":"lb","synopsis":"","isRedistributable":true}
