gossip

package
v0.0.0-...-7bf0052 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string)

为Key设置过期时间

func Expire

func Expire(key string, expires time.Duration)

为Key设置过期时间

func PostQueueBroadcast

func PostQueueBroadcast(exedata *Execute)

func Set

func Set(key, val string, expires time.Duration)

设置Key数据

Types

type Execute

type Execute map[string]string

数据包结构(数据交换)

type Handler

type Handler struct {
	Password string
	// contains filtered or unexported fields
}
var (
	H *Handler
	Q *queue.Queue
)

func NewHandler

func NewHandler() *Handler

func (*Handler) QueueBroadcast

func (h *Handler) QueueBroadcast(b []byte)

func (*Handler) StartService

func (h *Handler) StartService(str_addresslist []string, passWord string, bindAddress string, bindPort string) error

Jump to

Keyboard shortcuts

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