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" )
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 ¶
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) Read ¶
func (c *Configuration) Read(configFile string) error
func (*Configuration) Write ¶
func (c *Configuration) Write(configFile string) error
Click to show internal directories.
Click to hide internal directories.