regc

package module
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

README

regc

  • programming language : golang1.15.6
  • special tools

register center split to two parts,

  • one part

    Registration , monitoring and notified son node

  • another part

    execute any script

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServiceStart

func ServiceStart(host string)

Types

type Data

type Data struct {
	Uuid   string
	TimeSe int
}

type KVStoreClient

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

func NewKVStoreClient

func NewKVStoreClient(host string) *KVStoreClient

its client

func (*KVStoreClient) Exec

func (ks *KVStoreClient) Exec(callTimeSe int, loopTimeSe int) chan bool

type KVStoreService

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

func NewKVStoreService

func NewKVStoreService(host string) *KVStoreService

func (*KVStoreService) Get

func (p *KVStoreService) Get(key string, value *string) error

func (*KVStoreService) Set

func (p *KVStoreService) Set(kv [2]string, reply *struct{}) error

func (*KVStoreService) Watch

func (p *KVStoreService) Watch(d Data, keyChanged *struct{}) error

Jump to

Keyboard shortcuts

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