server

package
v0.0.0-...-5f09003 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorageOptions

type LocalStorageOptions struct {
	LocalStorageDirPath string
}

type Options

type Options struct {
	RaftOptions
	LocalStorageOptions
}

func DefaultServerOptions

func DefaultServerOptions(raftId uint64, localDbPath string) Options

type RaftOptions

type RaftOptions struct {
	RaftWALDirPath   string
	RaftSnapshotPath string
	RaftNodeID       uint64
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(options Options) *Server

func (*Server) Run

func (s *Server) Run() error

func (*Server) StartUp

func (s *Server) StartUp() error

Jump to

Keyboard shortcuts

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