olreg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2016 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CHUNK_SIZE = 1024
	DATABASE   = "olregistry"
	HANDLER    = "handler"
	SPORT      = 10000
	TABLE      = "handlers"
)

Variables

This section is empty.

Functions

func InitPushServer

func InitPushServer(port int, cluster []string) *r.PushServer

Types

type FileProcessor

type FileProcessor struct{}

func (FileProcessor) Process

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

type PullClient

type PullClient struct {
	Client *r.PullClient
}

func InitPullClient

func InitPullClient(cluster []string) *PullClient

func (*PullClient) Pull

func (c *PullClient) Pull(name string) []byte

type PushClient

type PushClient struct {
	Client *r.PushClient
}

func InitPushClient

func InitPushClient(saddr string) *PushClient

func (*PushClient) PushFiles

func (c *PushClient) PushFiles(name, fname, ftype string)

Jump to

Keyboard shortcuts

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