controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 5 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 {
	Name                 string            `yaml:"name"`
	IP                   string            `yaml:"ip"`
	Port                 int               `yaml:"port"`
	GRPCReflectionEnable bool              `yaml:"grpc_reflection_enable"`
	EtcdEndpoints        []string          `yaml:"etcd"`
	DataDir              string            `yaml:"data_dir"`
	MetadataConfig       MetadataConfig    `yaml:"metadata"`
	EtcdConfig           embedetcd.Config  `yaml:"embed_etcd"`
	Topology             map[string]string `yaml:"topology"`
	Replicas             uint              `yaml:"replicas"`
	GatewayEndpoint      string            `yaml:"gateway_endpoint"`
}

func InitConfig

func InitConfig(filename string) (*Config, error)

func (*Config) GetEtcdConfig

func (c *Config) GetEtcdConfig() embedetcd.Config

func (*Config) GetEventbusCtrlConfig

func (c *Config) GetEventbusCtrlConfig() eventbus.Config

func (*Config) GetTriggerConfig

func (c *Config) GetTriggerConfig() trigger.Config

type MetadataConfig

type MetadataConfig struct {
	KeyPrefix string `yaml:"key_prefix"`
}

Directories

Path Synopsis
block
Package block is a generated GoMock package.
Package block is a generated GoMock package.
server
Package server is a generated GoMock package.
Package server is a generated GoMock package.
subscription/testing
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.
worker/testing
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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