model

package
v0.0.0-...-77fc1cc Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDomainName

func AddDomainName(domainName string, client *redis.Client) error

AddDomainName add domain name to the redis

func GetConsulNodeInformation

func GetConsulNodeInformation(url string) (string, error)

GetConsulNodeInformation return node uuid

func IsUUIDExists

func IsUUIDExists(name string, client *redis.Client) (bool, error)

IsUUIDExists judge if the uuid exists in redis

Types

type RegisterConsulParam

type RegisterConsulParam struct {
	Key   string
	Value string
}

RegisterConsulParam stores the message to be sent to consul

func (*RegisterConsulParam) RegisterToConsul

func (r *RegisterConsulParam) RegisterToConsul(url string) error

RegisterToConsul register domain name to consul

Jump to

Keyboard shortcuts

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