Skip to content

itsavvy-ankur/image-stub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Golang based image stub to service images over a rest endpoint

  • Uses a yaml configuration to specify loading images locally from disk or over http
- requestId : "1234"
  imageUrl: "C:/images/tree.jpg"
  itemBarcode: "9876"

- requestId : "123456"
  imageUrl: "https://images.unsplash.com/photo-1453728013993-6d66e9c9123a?ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8dmlld3xlbnwwfHwwfHw%3D&ixlib=rb-1.2.1&w=1000&q=80"
  itemBarcode: "9876"

Running from command line

go run main.go -imgconfig=<path to yaml config>

Building executable

  • go build -o imagestub.exe

Running executable

  • .\imagestub.exe

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published