lbreg

package
v0.0.0-...-a2f2049 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

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{}

func (LBFileProcessor) Process

func (p LBFileProcessor) Process(name string, files map[string][]byte) ([]r.DBInsert, error)

type LBFiles

type LBFiles struct {
	Parser []byte
}

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 PushClientFiles struct {
	Handler string
	Proto   string
}

type ServerFiles

type ServerFiles struct {
	Handler []byte
	PB      []byte
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL