internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAMESPACE = "kungfu"
)

Variables

This section is empty.

Functions

func GetRedisDomainKey

func GetRedisDomainKey(domain string) string

func GetRedisIpKey

func GetRedisIpKey(ip string) string

func GetRedisKey

func GetRedisKey(k string) string

func GetRedisNetworkChannelKey

func GetRedisNetworkChannelKey() string

func GetRedisNetworkKey

func GetRedisNetworkKey() string

func GetRedisProxyChannelKey

func GetRedisProxyChannelKey() string

func GetRedisProxyDomainSetKey

func GetRedisProxyDomainSetKey() string

func GetRedisProxyKey

func GetRedisProxyKey() string

func GetRedisRealIpKey

func GetRedisRealIpKey(ip string) string

func GetRedisRelayPortKey

func GetRedisRelayPortKey() string

func GetRedisUpstreamNameserverKey

func GetRedisUpstreamNameserverKey() string

func IntToIpv4

func IntToIpv4(v uint32) net.IP

func Ipv4ToInt

func Ipv4ToInt(ip net.IP) uint32

func NewRedisClient

func NewRedisClient(config *Redis) (client *redis.Client)

func ParseNetwork

func ParseNetwork(network string) (minIp uint32, maxIp uint32, err error)

Types

type Config

type Config struct {
	Redis Redis
}

func ParseConfig

func ParseConfig(file string) *Config

func (*Config) String

func (config *Config) String() string

type Redis

type Redis struct {
	Addr     string
	Password string
}

func (*Redis) String

func (r *Redis) String() string

Jump to

Keyboard shortcuts

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