storage

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToServerMap map[string]*ToServer

Functions

func DelToServerInfo

func DelToServerInfo(key string) bool

func GetToServerMap

func GetToServerMap() map[string]*ToServer

func Recovery

func Recovery(data *json.RawMessage)

func SaveToServerData

func SaveToServerData() interface{}

func SetToServerInfo

func SetToServerInfo(ToServerKey string, server ToServer)

func UpdateToServerInfo

func UpdateToServerInfo(ToServerKey string, server ToServer) error

Types

type ToServer

type ToServer struct {
	sync.Mutex
	PluginName    string
	PluginVersion string
	ConnUri       string
	Notes         string
	LastID        int
	CurrentConn   int
	MaxConn       int
	AvailableConn int
}

func GetToServerInfo

func GetToServerInfo(key string) *ToServer

Jump to

Keyboard shortcuts

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