store

package
v0.0.0-...-e1f8a17 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VastoInternalKeyPrefix is a reserved key prefix for Vasto internal meta data
	VastoInternalKeyPrefix = []byte("_vasto.")
)

Functions

func NewVastoMergeOperator

func NewVastoMergeOperator() gorocksdb.MergeOperator

NewVastoMergeOperator creates a MergeOperator object for rocksdb.

func RunStore

func RunStore(option *StoreOption)

RunStore starts a store process

Types

type StoreOption

type StoreOption struct {
	Dir               *string
	Host              *string
	ListenHost        *string
	TcpPort           *int32
	Bootstrap         *bool
	DisableUnixSocket *bool
	Master            *string
	LogFileSizeMb     *int
	LogFileCount      *int
	DiskSizeGb        *int
	Tags              *string
	DisableUseEventIo *bool
	DisableBinLog     *bool
}

StoreOption has options to run a data store

func (*StoreOption) GetAdminPort

func (o *StoreOption) GetAdminPort() int32

GetAdminPort returns the admin port of the store, which is the data port plus 10000

type VastoServerId

type VastoServerId int

VastoServerId server id in vasto

type VastoShardId

type VastoShardId int

VastoShardId shard id in vasto

Jump to

Keyboard shortcuts

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