protocal

package
v0.0.0-...-9b02cd1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id         int
	Key        string
	Value      string
	ClusterId  int
	Status     int8
	Version    string
	CreateTime string
	UpdateTIme string
}

func NewConfig

func NewConfig(id int, key string, value string, clusterId int, status int8, version string) *Config

type ConfigNode

type ConfigNode struct {
	Config Config
	Prev   *ConfigNode
	Next   *ConfigNode
}

type VersionList

type VersionList struct {
	Head *ConfigNode
	Tail *ConfigNode
	// contains filtered or unexported fields
}

func NewVersionList

func NewVersionList() *VersionList

func (*VersionList) AddFirst

func (list *VersionList) AddFirst(config Config)

func (*VersionList) AddLast

func (list *VersionList) AddLast(config *Config)

func (*VersionList) Length

func (list *VersionList) Length() int

func (*VersionList) Remove

func (list *VersionList) Remove(configNode *ConfigNode)

func (*VersionList) Traverse

func (list *VersionList) Traverse()

Jump to

Keyboard shortcuts

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