invoke

package
v0.0.0-...-b6b001a Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTransactionHash

func GetTransactionHash(message string) (string, error)

Types

type OrgInvoke

type OrgInvoke struct {
	User *org.OrgUser
	Role string
}

func (*OrgInvoke) CreateOrgTargets

func (s *OrgInvoke) CreateOrgTargets(email string, accessList []int32, orgList []string) (string, error)

func (*OrgInvoke) DeleteUserFromLedger

func (s *OrgInvoke) DeleteUserFromLedger(email, targets, role string) error

func (*OrgInvoke) GetAccessOrgList

func (s *OrgInvoke) GetAccessOrgList(targets string) ([]string, error)

func (*OrgInvoke) GetAllUsersFromLedger

func (s *OrgInvoke) GetAllUsersFromLedger() ([]model.User, error)

func (*OrgInvoke) GetHistoryFromLedger

func (s *OrgInvoke) GetHistoryFromLedger(email string) ([]model.HistoryData, error)

func (*OrgInvoke) GetSecretMessage

func (s *OrgInvoke) GetSecretMessage(sessionOrg, targetOrg string) (string, error)

func (*OrgInvoke) GetUserFromLedger

func (s *OrgInvoke) GetUserFromLedger(email string, needHistory bool) (*model.User, error)

func (*OrgInvoke) InvokeCreateUser

func (s *OrgInvoke) InvokeCreateUser(name, age, mobile, salary string) error

func (*OrgInvoke) IsAccessExists

func (s *OrgInvoke) IsAccessExists(targets string, checkAccess int32, org string) bool

func (*OrgInvoke) OrgHasAccess

func (s *OrgInvoke) OrgHasAccess(targets string, checkAccess int32, org string) bool

func (*OrgInvoke) ParseOrgTargets

func (s *OrgInvoke) ParseOrgTargets(targets string) error

func (*OrgInvoke) ShareDataToOrg

func (s *OrgInvoke) ShareDataToOrg(email string, orgList []string, accessList []int32, targets string) error

func (*OrgInvoke) UpdateOrgTargets

func (s *OrgInvoke) UpdateOrgTargets(targets string, org string, access int32) (string, string, error)

func (*OrgInvoke) UpdateUserFromLedger

func (s *OrgInvoke) UpdateUserFromLedger(email, name, mobile, age, salary, targets, role string) error

Jump to

Keyboard shortcuts

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