config

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

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OramNodeConfig

type OramNodeConfig struct {
	Endpoints []OramNodeEndpoint
}

type OramNodeEndpoint

type OramNodeEndpoint struct {
	IP        string `yaml:"exposed_ip"`
	Port      int
	ID        int
	ReplicaID int
}

func ReadOramNodeEndpoints

func ReadOramNodeEndpoints(path string) ([]OramNodeEndpoint, error)

type Parameters

type Parameters struct {
	MaxBlocksToSend   int     `yaml:"max-blocks-to-send"`
	EvictionRate      int     `yaml:"eviction-rate"`
	EvictPathCount    int     `yaml:"evict-path-count"`
	BatchTimout       float64 `yaml:"batch-timeout"`
	EpochTime         float64 `yaml:"epoch-time"`
	Trace             bool    `yaml:"trace"`
	Z                 int     `yaml:"Z"`
	S                 int     `yaml:"S"`
	Shift             int     `yaml:"shift"`
	TreeHeight        int     `yaml:"tree-height"`
	RedisPipelineSize int     `yaml:"redis-pipeline-size"`
	MaxRequests       int     `yaml:"max-requests"`
	BlockSize         int     `yaml:"block-size"`
	Log               bool    `yaml:"log"`
	Profile           bool    `yaml:"profile"`
}

func ReadParameters

func ReadParameters(path string) (Parameters, error)

func (Parameters) String

func (o Parameters) String() string

type RedisConfig

type RedisConfig struct {
	Endpoints []RedisEndpoint
}

type RedisEndpoint

type RedisEndpoint struct {
	IP         string `yaml:"exposed_ip"`
	Port       int
	ID         int
	ORAMNodeID int `yaml:"oramnode_id"`
}

func ReadRedisEndpoints

func ReadRedisEndpoints(path string) ([]RedisEndpoint, error)

type RouterConfig

type RouterConfig struct {
	Endpoints []RouterEndpoint
}

type RouterEndpoint

type RouterEndpoint struct {
	IP   string `yaml:"exposed_ip"`
	Port int
	ID   int
}

func ReadRouterEndpoints

func ReadRouterEndpoints(path string) ([]RouterEndpoint, error)

type ShardNodeConfig

type ShardNodeConfig struct {
	Endpoints []ShardNodeEndpoint
}

type ShardNodeEndpoint

type ShardNodeEndpoint struct {
	IP        string `yaml:"exposed_ip"`
	Port      int
	ID        int
	ReplicaID int
}

func ReadShardNodeEndpoints

func ReadShardNodeEndpoints(path string) ([]ShardNodeEndpoint, error)

Jump to

Keyboard shortcuts

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