internal

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvNameServiceRestEnabled = "BLUDGEON_REST_ENABLED"
	EnvNameServiceGrpcEnabled = "BLUDGEON_GRPC_ENABLED"
)
View Source
const (
	DefaultServiceRestEnabled = true
	DefaultServiceGrpcEnabled = true
)

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 healthcheck service

Types

type Configuration

type Configuration struct {
	ServiceGrpcEnabled bool `json:"service_grpc_enabled"`
	ServiceRestEnabled bool `json:"service_rest_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