Documentation
¶
Index ¶
Constants ¶
View Source
const ( CHUNK_SIZE = 1024 DATABASE = "lbregistry" BALANCER = "balancer" SERVER = "server" PROTO = "proto" HANDLER = "handler" PB = "pb" PARSER = "parser" SPORT = 10000 )
Variables ¶
This section is empty.
Functions ¶
func InitPushServer ¶
func InitPushServer(cluster []string) *r.PushServer
Types ¶
type LBFileProcessor ¶
type LBFileProcessor struct{}
type LBPullClient ¶
type LBPullClient struct {
Client *r.PullClient
}
func InitLBPullClient ¶
func InitLBPullClient(cluster []string) *LBPullClient
func (*LBPullClient) Pull ¶
func (c *LBPullClient) Pull(name string) LBFiles
type PushClient ¶
type PushClient struct {
Client *r.PushClient
}
func InitPushClient ¶
func InitPushClient(saddr string) *PushClient
func (*PushClient) PushFiles ¶
func (c *PushClient) PushFiles(name string, files PushClientFiles)
type PushClientFiles ¶
type ServerFiles ¶
type ServerPullClient ¶
type ServerPullClient struct {
Client *r.PullClient
}
func InitServerPullClient ¶
func InitServerPullClient(cluster []string) *ServerPullClient
func (*ServerPullClient) Pull ¶
func (c *ServerPullClient) Pull(name string) ServerFiles
Click to show internal directories.
Click to hide internal directories.