-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
custom data endpoint that uses fastfaker
- Loading branch information
Showing
28 changed files
with
1,593 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
### Custom data | ||
##### template variables and examples | ||
|
||
All the variables that can be used with the **/custom/** entrypoint. | ||
For more info see [Readme](./README.md). | ||
|
||
| Variable | Example | | ||
|---------|--------| | ||
| **~beeralcohol~** | **4.7%** | | ||
| **~beerblg~** | **9.3°Blg** | | ||
| **~beerhop~** | **Glacier** | | ||
| **~beeribu~** | **42 IBU** | | ||
| **~beermalt~** | **Victory** | | ||
| **~beername~** | **Trappistes Rochefort 10** | | ||
| **~beerstyle~** | **Strong Ale** | | ||
| **~beeryeast~** | **2035 - American Lager** | | ||
| **~bs~** | **plug-and-play** | | ||
| **~buzzword~** | **content-based** | | ||
| **~carmaker~** | **BMW** | | ||
| **~carmodel~** | **Cts** | | ||
| **~chromeuseragent~** | **Mozilla/5.0 (Windows NT 4.0) AppleWebKit/5312 (KHTML, like Gecko) Chrome/39.0.874.0 Mobile Safari/5312** | | ||
| **~city~** | **West Swaniawski** | | ||
| **~color~** | **AliceBlue** | | ||
| **~company~** | **Padberg, Lehner and Lang** | | ||
| **~companysuffix~** | **Inc** | | ||
| **~country~** | **Cyprus** | | ||
| **~countryabr~** | **GL** | | ||
| **~creditcardcvv~** | **778** | | ||
| **~creditcardexp~** | **08/26** | | ||
| **~creditcardnumber~** | **6527420300252086** | | ||
| **~creditcardnumberluhn~** | **4605543610742645** | | ||
| **~creditcardtype~** | **American Express** | | ||
| **~currencylong~** | **Trinidad and Tobago Dollar** | | ||
| **~currencyshort~** | **SLL** | | ||
| **~day~** | **11** | | ||
| **~digit~** | **0** | | ||
| **~domainname~** | **humanvisionary.name** | | ||
| **~domainsuffix~** | **biz** | | ||
| **~email~** | **[email protected]** | | ||
| **~extension~** | **doc** | | ||
| **~firefoxuseragent~** | **Mozilla/5.0 (Windows NT 5.01; en-US; rv:1.9.1.20) Gecko/1983-24-08 Firefox/35.0** | | ||
| **~firstname~** | **Monte** | | ||
| **~float32~** | **3.1917442e+38** | | ||
| **~float64~** | **1.240504735476119e+308** | | ||
| **~fueltype~** | **Methanol** | | ||
| **~gender~** | **female** | | ||
| **~hackerabbreviation~** | **PCI** | | ||
| **~hackeradjective~** | **redundant** | | ||
| **~hackeringverb~** | **copying** | | ||
| **~hackernoun~** | **feed** | | ||
| **~hackerphrase~** | **You can't calculate the program without calculating the optical TCP firewall!** | | ||
| **~hackerverb~** | **copy** | | ||
| **~hexcolor~** | **#n4u8jo** | | ||
| **~hipsterword~** | **lomo** | | ||
| **~hour~** | **19** | | ||
| **~httpmethod~** | **PATCH** | | ||
| **~int16~** | **-4680** | | ||
| **~int32~** | **-814555329** | | ||
| **~int64~** | **-899361807533148519** | | ||
| **~int8~** | **16** | | ||
| **~ipv4address~** | **49.240.114.228** | | ||
| **~ipv6address~** | **2001:cafe:2d10:48c:bec1:2adb:ea5f:e318** | | ||
| **~jobdescriptor~** | **Human** | | ||
| **~joblevel~** | **Implementation** | | ||
| **~jobtitle~** | **Strategist** | | ||
| **~lastname~** | **Erdman** | | ||
| **~latitude~** | **12.386576760734286** | | ||
| **~letter~** | **t** | | ||
| **~longitude~** | **-173.07884672238632** | | ||
| **~mimetype~** | **video/x-scm** | | ||
| **~minute~** | **25** | | ||
| **~month~** | **June** | | ||
| **~name~** | **Dewitt Orn** | | ||
| **~nameprefix~** | **Dr.** | | ||
| **~namesuffix~** | **II** | | ||
| **~nanosecond~** | **442237102** | | ||
| **~operauseragent~** | **Opera/8.95 (Macintosh; PPC Mac OS X 10_6_0; en-US) Presto/2.12.282 Version/12.00** | | ||
| **~phone~** | **8767066027** | | ||
| **~phoneformatted~** | **705-764-6140** | | ||
| **~safariuseragent~** | **Mozilla/5.0 (iPad; CPU OS 9_3_2 like Mac OS X; en-US) AppleWebKit/533.28.8 (KHTML, like Gecko) Version/5.0.5 Mobile/8B119 Safari/6533.28.8** | | ||
| **~safecolor~** | **teal** | | ||
| **~second~** | **9** | | ||
| **~simplestatuscode~** | **200** | | ||
| **~ssn~** | **859461448** | | ||
| **~state~** | **Massachusetts** | | ||
| **~stateabr~** | **IL** | | ||
| **~statuscode~** | **403** | | ||
| **~street~** | **1848 Estatetown** | | ||
| **~streetname~** | **Ports** | | ||
| **~streetnumber~** | **130** | | ||
| **~streetprefix~** | **Port** | | ||
| **~streetsuffix~** | **town** | | ||
| **~timezone~** | **Pacific Standard Time** | | ||
| **~timezoneabv~** | **MST** | | ||
| **~timezonefull~** | **(UTC-11:00) Coordinated Universal Time-11** | | ||
| **~timezoneoffset~** | **3** | | ||
| **~transmissiongeartype~** | **Manual** | | ||
| **~uint16~** | **58530** | | ||
| **~uint32~** | **138464171** | | ||
| **~uint64~** | **4273607561850633676** | | ||
| **~uint8~** | **90** | | ||
| **~url~** | **http://www.principalintegrated.com/strategic** | | ||
| **~useragent~** | **Mozilla/5.0 (X11; Linux i686) AppleWebKit/5331 (KHTML, like Gecko) Chrome/36.0.863.0 Mobile Safari/5331** | | ||
| **~username~** | **Littel5445** | | ||
| **~uuid~** | **7789ae1a-9d4c-41ed-800c-6695cc1541c1** | | ||
| **~vehicletype~** | **Passenger car medium** | | ||
| **~weekday~** | **Friday** | | ||
| **~word~** | **perferendis** | | ||
| **~year~** | **1919** | | ||
| **~zip~** | **13340** | | ||
|
||
|
||
|
||
> This file is generated automatically at build. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM golang:1.11.1 AS builder | ||
WORKDIR /src | ||
|
||
#avoid downloading the dependencies on succesive builds | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN make build | ||
|
||
#TODO make this work (not found error if I activate multi-stage build) | ||
#FROM scratch | ||
#COPY --from=builder /src/build/pseudoservice . | ||
FROM scratch | ||
COPY --from=builder /src/build/pseudoservice . | ||
ENV PORT=8080 | ||
EXPOSE 8080 | ||
ENTRYPOINT ["./build/pseudoservice", "--read-timeout=1s", "--write-timeout=1s", "--keep-alive=15s", "--listen-limit=1024", "--max-header-size=3KiB", "--host=0.0.0.0"] | ||
ENTRYPOINT ["./pseudoservice", "--read-timeout=1s", "--write-timeout=1s", "--keep-alive=15s", "--listen-limit=1024", "--max-header-size=3KiB", "--host=0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.