signchain

package
v0.0.0-...-3a41573 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignChainService

type SignChainService interface {
	CheckFoundationBlock(ValidFoundationTime) error //检测第一个块, 如果没有就默认创建
	AppendPackageBlock(time.Time, string) error
	AppendLicenseBlock() error
}

func CreateSignChainService

func CreateSignChainService(ctx context.Context) SignChainService

type ValidFoundationTime

type ValidFoundationTime interface {
	ValidFoundationBlockTime(db *gorm.DB, createAt time.Time) bool
}

Jump to

Keyboard shortcuts

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