service

package
v0.0.0-...-748ae4c Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

README

The services hold Application Level Business Login code.

This root relative service folder, is for Business Entity / Model services

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISvcBlockchainTxs

type ISvcBlockchainTxs interface {
	SrvInitLedger() ([]byte, *dto.Problem)
	GetUserSvc(id string) (*dto.User, *dto.Problem)
	ReadAssetSvc(id string) (interface{}, *dto.Problem)
	CreateAssetSvc(asset dto.Asset) (interface{}, *dto.Problem)
	UpdateAssetSvc(asset dto.Asset) (interface{}, *dto.Problem)
}

ISvcBlockchainTxs Blockchain transactions service interface

func NewSvcBlockchainTxs

func NewSvcBlockchainTxs(pRepo *hlf.RepoBlockchain, reposUser *db.RepoUsers) ISvcBlockchainTxs

NewSvcBlockchainTxs instantiate the HLF blockchains transactions services

type ISvcHlfIdentity

type ISvcHlfIdentity interface {
	MkDappIdentity() (string, *dto.Problem)
	GenUsersCerts() *dto.Problem
}

type SvcHlfIdentity

type SvcHlfIdentity struct {
	// contains filtered or unexported fields
}

func NewSvcHlfIdentity

func NewSvcHlfIdentity(pRepoI *hlf.RepoHlfIdentity, pRepoU *db.RepoUsers) *SvcHlfIdentity

NewSvcHlfIdentity

func (*SvcHlfIdentity) MkDappIdentity

func (s *SvcHlfIdentity) MkDappIdentity(forAdmin bool) *dto.Problem

MkDappIdentity creates the dapp identity to authenticate all the operations in the HLF network. Technically, import the cert and private key from and existing HLF identity previously created with a CA

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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