depBundler

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ContextData

type ContextData struct {
}

func (ContextData) GetDateNow

func (cd ContextData) GetDateNow(c context.Context) (time.Time, bool, error)

func (ContextData) GetVersionForCollectionFromContext

func (cd ContextData) GetVersionForCollectionFromContext(c context.Context, collectionName string) (string, error)

func (ContextData) GetVersionsFromContext

func (cd ContextData) GetVersionsFromContext(c context.Context) (models.Versions, bool, error)

type Information

type Information struct {
	GitCommit string       `json:"git_commit,omitempty"`
	Version   string       `json:"version,omitempty"`
	BuildTag  string       `json:"build_tag,omitempty"`
	BuildTime time.Time    `json:"build_time,omitempty"`
	InitTime  time.Time    `json:"init_time,omitempty"`
	UpTime    JSONDuration `json:"up_time,omitempty"`
	Hostname  string       `json:"hostname,omitempty"`
}

Information is a struct that will hold all the statically injected information during build

func GetBuildInformation

func GetBuildInformation(includeExplanations ...bool) (info Information)

GetBuildInformation returns this service build information

type JSONDuration

type JSONDuration time.Duration

JSONDuration is an alias to time.Duration for Json marshaling

func (JSONDuration) MarshalJSON

func (jd JSONDuration) MarshalJSON() ([]byte, error)

MarshalJSON for JsonDuration is a helper function to better marshal time.Duration

type Validators

type Validators struct {
	fx.In
}

Directories

Path Synopsis
middlewares
log

Jump to

Keyboard shortcuts

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