chain

package
v1.17.0-RC3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

DEPRECATED: This package is deprecated and will be removed in a future release.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetServerChain

func SetServerChain(c *Chain)

SetServerChain sets the server chain object to package variable serverChain.

Types

type Chain

type Chain struct {
	ID           string
	Version      string
	CreationDate time.Timestamp
	OwnerID      string
	BlockWorker  string
}

Chain represents data structure that holds the chain data.

func GetServerChain

func GetServerChain() *Chain

GetServerChain returns the chain object for the server chain.

func NewChain

func NewChain(id, OwnerID, blockWorker string) *Chain

NewChain creates a new Chain.

func Provider

func Provider() *Chain

Provider returns entity for chain object.

Jump to

Keyboard shortcuts

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