server

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(db *gorm.DB, alloc *datanode_alloc.DataNodeAllocator) (*server, error)

NewServer AutoMigrate sqlite table structure for MapEntry and Chunk (Tables for Cell will be created during file creation). Then initialize a zap Logger and load FileManager from database to create a server.

@para

db: a gorm connection. It can't be a transaction.

@return

*server: initialized server
error:
	errors during auto migration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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