exchanger

package
v0.0.0-...-8b0f75f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

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

Exchange the envcd data exchange

func Start

func Start(exchanger *config.Exchanger) *Exchange

Start envcd by envcd exchangerConnMetadata config

@param exchangerConnMetadata the config for envcd

func (*Exchange) Put

func (exchange *Exchange) Put(key interface{}, value interface{}) error

Put new data to Exchanger by key and value

func (*Exchange) Remove

func (exchange *Exchange) Remove(key interface{}) error

Remove delete the data from Exchanger by key

type Exchanger

type Exchanger interface {

	// Put put data into exchanger
	//  @param key data identity
	//  @param value data
	Put(key interface{}, value interface{}) error

	// Remove remove data from exchanger
	//  @param o data
	Remove(key interface{}) error
}

Exchanger exchanger interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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