Documentation ¶
Index ¶
- Constants
- func LoadTrace(f io.Reader) [][]int
- func LoadTraceFile(filename string) [][]int
- func NewServerDriver() (*serverDriver, error)
- func PirTypeStrings() []string
- func RegisteredTypes() []reflect.Type
- func SerializedSizeOf(e interface{}) (int, error)
- type Config
- func (c *Config) AddBenchmarkFlags() *Config
- func (c *Config) AddClientFlags() *Config
- func (c *Config) AddPirFlags() *Config
- func (c *Config) AddServerFlags() *Config
- func (c *Config) Parse() *Config
- func (c *Config) Server2Driver() (PirServerDriver, error)
- func (c *Config) ServerDriver() (PirServerDriver, error)
- func (c *Config) String() string
- type ErrorPrinter
- type PirServerDriver
- type Profiler
- type RowIndexVal
- type RpcProxy
- func (p *RpcProxy) AddRows(numRows int, none *int) error
- func (p *RpcProxy) Answer(query pir.QueryReq, resp *interface{}) error
- func (p *RpcProxy) Configure(config TestConfig, none *int) error
- func (p *RpcProxy) DeleteRows(numRows int, none *int) error
- func (p *RpcProxy) GetOfflineBytes(none int, out *int) error
- func (p *RpcProxy) GetOfflineTimer(none int, out *time.Duration) error
- func (p *RpcProxy) GetOnlineBytes(none int, out *int) error
- func (p *RpcProxy) GetOnlineTimer(none int, out *time.Duration) error
- func (p *RpcProxy) GetRow(idx int, row *RowIndexVal) error
- func (p *RpcProxy) Hint(req pir.HintReq, resp *pir.HintResp) error
- func (p *RpcProxy) KeyUpdates(req updatable.KeyUpdatesReq, resp *updatable.KeyUpdatesResp) error
- func (p *RpcProxy) NumKeys(none int, out *int) error
- func (p *RpcProxy) NumRows(none int, out *int) error
- func (p *RpcProxy) ResetMetrics(none int, none2 *int) error
- func (p *RpcProxy) RowLen(none int, out *int) error
- type TestConfig
Constants ¶
View Source
const ( ColumnTimestamp = 0 ColumnAdds = 1 ColumnDeletes = 2 ColumnQueries = 3 )
Variables ¶
This section is empty.
Functions ¶
func LoadTraceFile ¶
func NewServerDriver ¶
func NewServerDriver() (*serverDriver, error)
func PirTypeStrings ¶
func PirTypeStrings() []string
func RegisteredTypes ¶
func SerializedSizeOf ¶
Types ¶
type Config ¶
type Config struct { TestConfig UseTLS bool CpuProfile string // For client PirType pir.PirType ServerAddr string ServerAddr2 string UsePersistent bool // For server Port int // For benchmarks NumUpdates int Progress bool TraceFile string FlagSet *flag.FlagSet // contains filtered or unexported fields }
func (*Config) AddBenchmarkFlags ¶
func (*Config) AddClientFlags ¶
func (*Config) AddPirFlags ¶
func (*Config) AddServerFlags ¶
func (*Config) Server2Driver ¶
func (c *Config) Server2Driver() (PirServerDriver, error)
func (*Config) ServerDriver ¶
func (c *Config) ServerDriver() (PirServerDriver, error)
type ErrorPrinter ¶
type ErrorPrinter struct { }
Disgusting hack since testing.Benchmark hides all logs and failures
func (ErrorPrinter) Fail ¶
func (ep ErrorPrinter) Fail()
func (ErrorPrinter) FailNow ¶
func (ep ErrorPrinter) FailNow()
func (ErrorPrinter) Log ¶
func (ep ErrorPrinter) Log(args ...interface{})
type PirServerDriver ¶
type PirServerDriver interface { updatable.UpdatableServer Configure(config TestConfig, none *int) error AddRows(numRows int, none *int) error DeleteRows(numRows int, none *int) error GetRow(idx int, row *RowIndexVal) error NumRows(none int, out *int) error NumKeys(none int, out *int) error RowLen(none int, out *int) error ResetMetrics(none int, none2 *int) error GetOfflineTimer(none int, out *time.Duration) error GetOnlineTimer(none int, out *time.Duration) error GetOfflineBytes(none int, out *int) error GetOnlineBytes(none int, out *int) error }
type Profiler ¶
type Profiler struct {
// contains filtered or unexported fields
}
func NewProfiler ¶
type RpcProxy ¶
type RpcProxy struct {
*rpc.ClientProxy
}
func NewRpcProxy ¶
func (*RpcProxy) GetOfflineTimer ¶
func (*RpcProxy) GetOnlineTimer ¶
func (*RpcProxy) KeyUpdates ¶
func (p *RpcProxy) KeyUpdates(req updatable.KeyUpdatesReq, resp *updatable.KeyUpdatesResp) error
type TestConfig ¶
type TestConfig struct { NumRows int RowLen int Updatable bool UpdateSize int PresetRows []RowIndexVal // Seed used to generate random data in database. Not used for cryptographic operations. DataRandSeed int64 MeasureBandwidth bool }
func (TestConfig) String ¶
func (c TestConfig) String() string
Click to show internal directories.
Click to hide internal directories.