syncmap

package
v1.0.0-24 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackFunc

type CallbackFunc func([]byte, ...interface{})

type SubscribeMap

type SubscribeMap struct {
	Data map[string]CallbackFunc
	// contains filtered or unexported fields
}

func (*SubscribeMap) Delete

func (s *SubscribeMap) Delete(key string)

func (*SubscribeMap) Read

func (s *SubscribeMap) Read(key string) (CallbackFunc, bool)

func (*SubscribeMap) Write

func (s *SubscribeMap) Write(key string, f CallbackFunc)

Jump to

Keyboard shortcuts

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