data_redis

package
v0.0.0-...-69b6b67 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletePeer

func DeletePeer(tag string)

func SetPeer

func SetPeer(peerInfo *PeerInfo, tag string) error

Types

type PeerInfo

type PeerInfo struct {
	Tag      string `json:"tag"`
	Location string `json:"location"`
	IP       string `json:"ip"`
}

example for GormDB and tools cache

func GetPeer

func GetPeer(tag string) (*PeerInfo, error)

Jump to

Keyboard shortcuts

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