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: 0

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