syncbaselib

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package syncbaselib defines a Main function that takes syncbased flags as arguments, for use in syncbased/v23_main.go as well as gosh. It also defines a Serve function, called from Main as well as syncbased/mojo_main.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(opts Opts)

func MainWithCtx

func MainWithCtx(ctx *context.T, opts Opts)

func Serve

func Serve(ctx *context.T, opts Opts) (rpc.Server, rpc.Dispatcher, func())

Serve starts the Syncbase server. Returns rpc.Server and rpc.Dispatcher for use in the Mojo bindings, along with a cleanup function.

Types

type Opts

type Opts struct {
	Name            string
	RootDir         string
	Engine          string
	SkipPublishInNh bool
	DevMode         bool
	CpuProfile      string
	InitialDB       string
}

func (*Opts) InitFlags

func (o *Opts) InitFlags(f *flag.FlagSet)

Note: Where possible, we have flag default values be zero values, so that struct-based configuration matches flag-based configuration.

Jump to

Keyboard shortcuts

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