database

package
v0.0.0-...-fb2315c Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Redis *redis.Client

Functions

func InitRedis

func InitRedis()

func NewRedis

func NewRedis() *redis.Client

Types

type ConsulClient

type ConsulClient struct {
	Client   *consulapi.Client
	Services map[string]*consulapi.AgentService
	// contains filtered or unexported fields
}
var Consul *ConsulClient

func NewConsulClient

func NewConsulClient(conf ConsulConfig) *ConsulClient

func (*ConsulClient) GetService

func (c *ConsulClient) GetService(serviceName string) *consulapi.AgentService

Jump to

Keyboard shortcuts

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