redis

package
v0.0.0-...-aafc065 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedisInit

func RedisInit()

Types

type Redis

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

func NewRedis

func NewRedis() *Redis

func (*Redis) GetService

func (r *Redis) GetService(ctx context.Context, name string) (ser *registered.Service, err error)

服务发现

func (*Redis) Init

func (r *Redis) Init(ctx context.Context, set ...registered.SetOption) error

初始化Etcd注册中心

func (*Redis) Name

func (r *Redis) Name() string

func (*Redis) Registry

func (r *Redis) Registry(ctx context.Context, node *registered.Node) (string, error)

服务注册

func (*Redis) UnRegistry

func (r *Redis) UnRegistry(ctx context.Context, node *registered.Node) error

服务反注册

Jump to

Keyboard shortcuts

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