p2p

package
v0.0.0-...-d04bc5a Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Deliminator = ","
	ABY3        = "ABY3"
	SEMI2K      = "SEMI2K"
	CHEETAH     = "CHEETAH"
)

Variables

This section is empty.

Functions

func ClearData

func ClearData(ds *regtest.TestDataSource) error

func CreateProjectTableAndCcl

func CreateProjectTableAndCcl(projectConf string, cclList []*scql.SecurityConfig_ColumnControl, skipCreate bool) error

func GetUrlList

func GetUrlList(conf *TestConfig) error

func NewFetchConf

func NewFetchConf(maxFetchCount int, fetchInterval time.Duration) *fetchConf

func RunSql

func RunSql(issuer string, sql string, jobConf string, fc *fetchConf) ([]*scql.Tensor, error)

func ValidateAllParticipants

func ValidateAllParticipants() (err error)

Types

type TestConfig

type TestConfig struct {
	SkipCreateTableCCL   bool                  `yaml:"skip_create_table_ccl"`
	SkipConcurrentTest   bool                  `yaml:"skip_concurrent_test"`
	SkipPlaintextCCLTest bool                  `yaml:"skip_plaintext_ccl_test"`
	ProjectConf          string                `yaml:"project_conf"`
	HttpProtocol         string                `yaml:"http_protocol"`
	BrokerAddrs          string                `yaml:"broker_addrs"`
	SpuProtocol          string                `yaml:"spu_protocol"`
	MySQLConnStr         string                `yaml:"mysql_conn_str"`
	PsiType              scql.PsiAlgorithmType `yaml:"psi_type"`
}

func ReadConf

func ReadConf(path string) (*TestConfig, error)

type TestFlag

type TestFlag struct {
	Sync           bool
	TestConcurrent bool
	TestSerial     bool
}

Jump to

Keyboard shortcuts

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