persistence

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseColumn

type BaseColumn struct {
	CreatedAt time.Time  `gorm:"column:created_at"`
	UpdatedAt time.Time  `gorm:"column:updated_at"`
	DeletedAt *time.Time `gorm:"column:deleted_at"`
}

gorm.Model definition

type InstanceInformation

type InstanceInformation struct {
	BaseColumn
	InstanceId      string `gorm:"column:instance_id;primary_key"`
	LocalPeerId     string `gorm:"column:local_peer_id"`
	GlobalClockTime int64  `gorm:"column:global_clock_time"`
}

Database information_schema definition

type PeerNodeInfomation

type PeerNodeInfomation struct {
	BaseColumn
	PeerNodeId         string `gorm:"column:peer_node_id;primary_key"`
	DatabaseId         string `gorm:"column:database_id"`
	TableId            string `gorm:"column:table_id"`
	LocalPeerId        string `gorm:"column:local_peer_id"`
	LocalInstanceId    string `gorm:"column:local_instance_id"`
	LocalHost          string `gorm:"column:local_host"`
	RemoteHost         string `gorm:"column:remote_host"`
	RemotePeerId       string `gorm:"column:remote_peer_id"`
	RemoteInstanceId   string `gorm:"column:remote_instance_id"`
	LastDagMergeNodeId string `gorm:"column:last_node_id"`
	ProtocolId         string `gorm:"column:protocol_id"` //defualt /ipfs/id/1.0.0
}

Database information_schema definition

Jump to

Keyboard shortcuts

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