internal

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvNameMetaType                  = "BLUDGEON_META_TYPE"
	EnvNameServiceRestEnabled        = "BLUDGEON_REST_ENABLED"
	EnvNameServiceGrpcEnabled        = "BLUDGEON_GRPC_ENABLED"
	EnvNameClientChangesRestEnabled  = "BLUDGEON_CHANGES_CLIENT_REST_ENABLED"
	EnvNameClientChangesKafkaEnabled = "BLUDGEON_CHANGES_CLIENT_KAFKA_ENABLED"
)
View Source
const (
	DefaultMetaType                  = meta.TypeMySQL
	DefaultServiceRestEnabled        = true
	DefaultServiceGrpcEnabled        = true
	DefaultClientChangesRestEnabled  = true
	DefaultClientChangesKafkaEnabled = false
)

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 start an instance of the bludgeon employees service

Types

type Configuration

type Configuration struct {
	MetaType                  meta.Type `json:"type"`
	ServiceRestEnabled        bool      `json:"service_rest_enabled"`
	ServiceGrpcEnabled        bool      `json:"service_grpc_enabled"`
	ClientChangesRestEnabled  bool      `json:"client_changes_rest_enabled"`
	ClientChangesKafkaEnabled bool      `json:"client_changes_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