up2redis

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPathExist

func IsPathExist(path string) bool

func RedisClient

func RedisClient() *redis.ClusterClient

Types

type Config

type Config struct {
	Listen   string
	Logger   LoggerC
	Redis    RedisC
	PoolSize int `json:"pool_size"`
}

func (*Config) LoadConfig

func (c *Config) LoadConfig(path string) error

load config.toml

type LoggerC

type LoggerC struct {
	LogPath    string
	MaxSize    int
	MaxBackups int
	MaxAge     int
	Level      string
}

type Pool

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

func New

func New(size int) *Pool

func (*Pool) Add

func (p *Pool) Add(delta int)

func (*Pool) Done

func (p *Pool) Done()

func (*Pool) Wait

func (p *Pool) Wait()

type RedisC

type RedisC struct {
	DB       int
	Password string
	PoolSize int
	Cluster  []string
}

type Server

type Server struct {
	Config *Config
}

func (*Server) Report

func (s *Server) Report(ctx context.Context, in *redis.ReportRequest) (*redis.ReportResponse, error)

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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