titan: github.com/distributedio/titan Index | Files | Directories

package titan

import "github.com/distributedio/titan"

Index

Package Files

client.go titan.go util.go

func GenerateTraceID Uses

func GenerateTraceID() string

GenerateTraceID grenerates a traceid for once a request

func GetClientID Uses

func GetClientID() func() int64

GetClientID starts with 1 and allocates clientID incrementally

func PrintVersionInfo Uses

func PrintVersionInfo()

PrintVersionInfo prints the server version info

type Server Uses

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

Server implements the redis prototol server

func New Uses

func New(ctx *context.ServerContext) *Server

New a server instance

func (*Server) GracefulStop Uses

func (s *Server) GracefulStop() error

GracefulStop the server, TODO close clients connections first

func (*Server) ListenAndServe Uses

func (s *Server) ListenAndServe(addr string) error

ListenAndServe serves on a specified address

func (*Server) Serve Uses

func (s *Server) Serve(lis net.Listener) error

Serve the redis requests

func (*Server) Stop Uses

func (s *Server) Stop() error

Stop the server

Directories

PathSynopsis
command
conf
context
db
db/store
db/zlistprotoPackage zlistproto is a generated protocol buffer package.
encoding
encoding/resp
metrics
server

Package titan imports 15 packages (graph). Updated 2019-09-21. Refresh now. Tools for package owners.