appinfo

package
v0.0.0-...-47977ad Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	Repository
}

AppInfo is a command that implements a usecase that requests information about the program. Such as build time and commit hash.

func NewAppInfo

func NewAppInfo(r Repository) *AppInfo

func (*AppInfo) Execute

func (a *AppInfo) Execute() Response

Execute returns the application information

type AppRepository

type AppRepository struct{}

func NewAppRepository

func NewAppRepository() AppRepository

func (AppRepository) GetAppInfo

func (a AppRepository) GetAppInfo() Response

type Repository

type Repository interface {
	GetAppInfo() Response
}

Repository describes abstract methods to receive information about the application

type Response

type Response struct {
	Commit    string
	BuildTime string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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