config

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 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 Config

type Config struct {
	RedisConfig            RedisStorageConfig
	InMemoryConfig         InmemStorageConfig
	RedisQueueConfig       RedisQueueConfig
	InMemQueueConfig       InMemQueueConfig
	HttpPort               int
	GrpcPort               int
	StorageType            StorageType
	QueueType              QueueType
	EncoderDecoderType     EncoderDecoderType
	ActionExecutorCapacity int
	ClusterConfig          cluster.Config
	RingConfig             cluster.RingConfig
}

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