srv

package
v0.0.0-...-f65ed9b Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigOpts *config.Options
)

Functions

func ParserCfg

func ParserCfg() (*config.Options, error)

ParserCfg config paser

func ProvideOpts

func ProvideOpts(
	c goleveldb.Option,
) []goleveldb.Option

func RegisterGoleveldb

func RegisterGoleveldb(options *config.Options) error

RegisterGoleveldb register kv store engine goleveldb

func RegisterLogStoreGoleveldb

func RegisterLogStoreGoleveldb(options *config.Options) error

RegisterLogStoreGoleveldb register log store engine goleveldb

func RegisterMemGoleveldb

func RegisterMemGoleveldb(options *config.Options) error

RegisterMemGoleveldb regisiter kv store engine memory goleveldb

func RegisterReplicaMasterSlaveRespCmdSrv

func RegisterReplicaMasterSlaveRespCmdSrv(options *config.Options) error

func RegisterStandaloneRespCmdSrv

func RegisterStandaloneRespCmdSrv(options *config.Options) error

func RegisterXdisStorager

func RegisterXdisStorager(options *config.Options) error

RegisterXdisStorager register storager xdis-storager

func RegisterXdisTikv

func RegisterXdisTikv(options *config.Options) error

RegisterXdisTikv register storager xdis-tikv

func SetupCmdRoutes

func SetupCmdRoutes(h *server.Hertz, s *Server)

func SetupProbeRoutes

func SetupProbeRoutes(h *server.Hertz)

Types

type Server

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

func NewServer

func NewServer(contextContext context.Context, options *config.Options) (*Server, error)

NewServer server init

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run reviews server

func (*Server) SetupRoutes

func (s *Server) SetupRoutes(h *server.Hertz)

func (*Server) Stop

func (s *Server) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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