fs

package
v8.8.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MkDirCache

type MkDirCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

MkDirCache store in memory the existing directories created

func NewDirCache

func NewDirCache() *MkDirCache

NewDirCache is a process create a directory just for once

type Msg

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

func (*Msg) Bytes

func (m *Msg) Bytes() (b []byte, err error)

type Server

type Server struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Server is the thread that listen for clients' connections

func New

func New(c lib.RelayerConfig, done chan bool) (*Server, error)

New creates a new Redis local server

func (*Server) Exit

func (srv *Server) Exit()

Exit closes the listener and send done to main

func (*Server) Reload

func (srv *Server) Reload(c *lib.RelayerConfig) (err error)

Reload the configuration

func (*Server) Start

func (srv *Server) Start() (e error)

Start accepts incoming connections on the Listener

type ShardsServer

type ShardsServer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewShardsServer

func NewShardsServer(srv *Server) *ShardsServer

func (*ShardsServer) Exit

func (ss *ShardsServer) Exit()

func (*ShardsServer) Len

func (ss *ShardsServer) Len() (int, int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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