config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	NodeName       string
	BindAddr       string
	Tags           map[string]string
	StartJoinAddrs []string
	PartitionCount int
}

type Config

type Config struct {
	RedisConfig        RedisStorageConfig
	InMemoryConfig     InmemStorageConfig
	RedisQueueConfig   RedisQueueConfig
	InMemQueueConfig   InMemQueueConfig
	HttpPort           int
	GrpcPort           int
	StorageType        StorageType
	QueueType          QueueType
	EncoderDecoderType EncoderDecoderType
	ClusterConfig      ClusterConfig
	BatchSize          int
	AnalyticsConfig    analytics.DataCollectorConfig
}

func (Config) RPCAddr

func (c Config) RPCAddr() (string, error)

type EncoderDecoderType

type EncoderDecoderType string
const JSON_ENCODER_DECODER EncoderDecoderType = "JSON"
const PROTO_ENCODER_DECODER EncoderDecoderType = "PROTO"

type InMemQueueConfig

type InMemQueueConfig struct {
}

type InmemStorageConfig

type InmemStorageConfig struct {
}

type QueueType

type QueueType string
const QUEUE_TYPE_REDIS QueueType = "redis"
const QUEUE_TYPE_SQS QueueType = "sqs"

type RedisQueueConfig

type RedisQueueConfig struct {
	Addrs     []string
	Namespace string
}

type RedisStorageConfig

type RedisStorageConfig struct {
	Addrs     []string
	Namespace string
}

type StorageType

type StorageType string
const STORAGE_TYPE_DYNAMO StorageType = "dynamo"
const STORAGE_TYPE_INMEM StorageType = "memory"
const STORAGE_TYPE_REDIS StorageType = "redis"

Jump to

Keyboard shortcuts

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