-
💬 Ask me about Golang, Backend and memes.
-
📫 How to reach me [email protected]
painhardcore / emc-testtask Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
💬 Ask me about Golang, Backend and memes.
📫 How to reach me [email protected]
Please describe H/A and scalability purposes more detail (external load balancer, scalability of storage, service discovery). You can attach the picture if it is useful.
Also what will you do in this application to guarantee that the data has been written to the specified storage successfully?
Line 15 in 64c47c8
Probably we need to ensure that input serialNumber is not zero.
Something like:
// S/N is zero
if s == 0 {
return c.NoContent(http.StatusNoContent)
}
Json is fine, but are there any other formats which will be faster for sending in client-server applications?
There was a task to create client-server app, why did you decide to avoid from client side implementation?
localhost:/go/src/github.com/painhardcore/emc-testtask # docker build -f ./Dockerfile .
Sending build context to Docker daemon 16.3MB
Step 1/9 : FROM golang:alpine as builder
---> 34d3217973fd
Step 2/9 : RUN mkdir /build
---> Using cache
---> 7f4a8f0eeeeb
Step 3/9 : ADD . /go/src/github.com/painhardcore/emc-testtask/
---> Using cache
---> 51cb858f2728
Step 4/9 : WORKDIR /go/src/github.com/painhardcore/emc-testtask/
---> Using cache
---> a7381a0067ed
Step 5/9 : RUN CGO_ENABLED=0 GOOS=linux go build -o main .
---> Running in 98ed057452f2
handlers.go:7:2: cannot find package "github.com/labstack/echo" in any of:
/usr/local/go/src/github.com/labstack/echo (from $GOROOT)
/go/src/github.com/labstack/echo (from $GOPATH)
main.go:7:2: cannot find package "github.com/labstack/echo/middleware" in any of:
/usr/local/go/src/github.com/labstack/echo/middleware (from $GOROOT)
/go/src/github.com/labstack/echo/middleware (from $GOPATH)
handlers.go:8:2: cannot find package "github.com/tarantool/go-tarantool" in any of:
/usr/local/go/src/github.com/tarantool/go-tarantool (from $GOROOT)
/go/src/github.com/tarantool/go-tarantool (from $GOPATH)
The command '/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -o main .' returned a non-zero code: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.