internal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvNameMetaType            string = "BLUDGEON_META_TYPE"
	EnvNameServiceRestEnabled  string = "BLUDGEON_REST_ENABLED"
	EnvNameServiceGrpcEnabled  string = "BLUDGEON_GRPC_ENABLED"
	EnvNameServiceKafkaEnabled string = "BLUDGEON_KAFKA_ENABLED"
)
View Source
const (
	DefaultRestEnabled  bool      = false
	DefaultGrpcEnabled  bool      = true
	DefaultKafkaEnabled bool      = true
	DefaultMetaType     meta.Type = meta.TypeMemory
)

Variables

View Source
var (
	Version   string
	GitCommit string
	GitBranch string
)

These variables are populated at build time to find where the variables are...use go tool nm ./app | grep app REFERENCE: https://www.digitalocean.com/community/tutorials/using-ldflags-to-set-version-information-for-go-applications

Functions

func Main

func Main(pwd string, args []string, envs map[string]string, chSignalInt chan os.Signal) error

Main is used to init an instance of the bludgeon changes service

Types

type Configuration

type Configuration struct {
	MetaType     meta.Type `json:"type"`
	RestEnabled  bool      `json:"rest_enabled"`
	KafkaEnabled bool      `json:"kafka_enabled"`
}

func (*Configuration) Default

func (c *Configuration) Default(pwd string)

func (*Configuration) FromEnv

func (c *Configuration) FromEnv(pwd string, envs map[string]string)

func (*Configuration) Read

func (c *Configuration) Read(configFile string) error

func (*Configuration) Write

func (c *Configuration) Write(configFile string) error

Jump to

Keyboard shortcuts

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