Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:18
    2morales starred labstack/echo
  • 12:17
    ropzsu starred labstack/echo
  • 11:10
    miolex starred labstack/echo
  • 10:43
    mdfaizan7 starred labstack/echo
  • 09:03
    sw1max starred labstack/echo
  • 06:30
    farinas09 starred labstack/echo
  • 05:21
    wtysos11 starred labstack/echo
  • 01:37
    ZyqGitHub1 starred labstack/echo
  • 00:07
    Hyvi starred labstack/echo
  • Jun 20 22:35
    QiruiSun starred labstack/echo
  • Jun 20 19:41
    aldas commented #1302
  • Jun 20 16:45
    aldas commented #1302
  • Jun 20 16:44
    aldas commented #1302
  • Jun 20 16:02
    aldas commented #1302
  • Jun 20 15:52
    aldas commented #1302
  • Jun 20 15:52
    aldas commented #1302
  • Jun 20 15:51
    aldas commented #1302
  • Jun 20 15:50
    matiniiuu starred labstack/echo
  • Jun 20 15:20
    aldas pinned #1302
  • Jun 20 15:20
    aldas reopened #1302
Dmitrii Okunev (at work)
@xaionaro-guest:matrix.dx.center
[m]
But I would've open an issue anyway: to either use integers or to implement support of floats :)
1 reply
Damien Gallagher
@damogallagher
Hi. With the logging middleware, is it possible to exclude certain requests from being logged . I am thinking to not log the /health endpoint that is called every 5 seconds from the load balancer
4 replies
Arun Gopalpuri
@arun0009
Or you can use the “Skipper” function.
letran3691
@letran3691
hello everyone
I have issues download file, somebody help my thanks
Dmitrii Okunev (at work)
@xaionaro-guest:matrix.dx.center
[m]
Hello. I guess to help it is required to know more information about the issue. What do you do, what do you expect, what do you get instead?
Fede
@f.daforno_gitlab
hi there..i'm not able to use redis session with the latest version echo/v4 v4.2.2 is my fault or it's doesn't work at all?
Artur Mustafin
@funcelot

I have issues download file, somebody help my thanks

what the issue?

bikashpdash
@bikashpdash
When use cookie in jwt auth not working , {"message":"missing or malformed jwt"}
Code
middleware.JWTConfig{
SigningKey: []byte(os.Getenv("SECRET_KEY")),
TokenLookup: "cookie:Authorization",
}
but when in change TokenLookup to header:Authorization it works properly
Dmitrii Okunev (at work)
@xaionaro-guest:matrix.dx.center
[m]
Most likely unrelated, but be aware: cookie fields has limited size. But to diagnose your case it is not enough information: you need to either publish the code, or to show traffic dumps or something to look at :)
bikashpdash
@bikashpdash
I checked the cookie i stroed is same value as the jwt token
Yassine Rais
@yassinrais
Hi guys! Just wondering if there is a simple echo project with a structured websocket application :D environment/testing already configured. i will be grateful if someone suggest me somthing ✨ thanks
fugkco
@fugkco:matrix.org
[m]
Hey all, is it possible to use a single echo.Echo instance to run both HTTP and HTTPS conenctions?
Also, I don't see a way to use StartAutoTLS with a custom http.Server instance, nor with anything else. What's the right way to customise read/write/idle timeouts?
Iván Álvarez
@ivanape
Hi all, maybe someone could help me. I would like to send large files with "chunked" transfer to an Echo backend. When I send a chunked request get following response code=400, message=unknown type, internal=unknown type. Could someone share a starting point to know how to deal with this feature with Echo? I have searched info about this, with no luck :(. Thanks!
Vasiliy Toporov
@renta
Hello. Has anyone made an implementation of Echo Logger interface via Zap logger? Could you share an example?
I've found one with middleware https://github.com/brpaz/echozap but it seems to be an integration without interface implementation...
letran3691
@letran3691
hello
letran3691
@letran3691
somebody help me. I want get multiple checkbox from request. I'm try a := c.Request().Form["role"] however it's return a null arry 2021/05/14 16:28:37 role []
daghaian
@daghaian
Evening all, I've been working on my first project w/ the Echo framework and was wondering if anyone has gone down the gRPC support route before?
I have a few scenarios in which I have a desire to stream data like logs back to my clients and was thinking gRPC was the most logical candidate
Martti T.
@aldas
Echo is for plain old HTTP(s). You could create http handler for http.Server that redirects flow to grpc server. ala
    if req.Header.Get("Content-Type") == "application/grpc-web+proto" {
        grpcServer.ServeHTTP(w, req)
        return
    }
       e.ServeHTTP(w, req)
Argishti Rostamian
@WhileLoop
Hi, has anyone used the HTTP-01 challenge type when using Auto TLS in Echo? I have posted some code in https://github.com/labstack/echo/discussions/1884 with more details.
AcrylicShrimp
@AcrylicShrimp
Echo not supporting url path param binding?
The even docs doesn't mention about it
But they said that Echo not support it: labstack/echo#1337
AcrylicShrimp
@AcrylicShrimp
Nah, I tested and found that the echo is supporting url parameter binding
qiuapeng921
@qiuapeng921
hello
johndiego
@johndiego
hi guys ; is possible set variable in conext im handle functions?
Ömer Faruk Biçer
@ofarukbicer
hello
Kukulkano
@Kukulkano
Hi. I like to downgrade privileges of my go program after the listening port has been aquired by echo framework. But I can not find an event/callback for this? I then tried to find some status value of my echo session telling me that the port was opened, but I can not find such either. How can I make sure that I get some code executed after the port is aquired? Until now I run a go routine and wait 5 seconds and then do the downgrade, but this is hacky :-(
Nanda Kishore
@none_daa_twitter
Hi All, Are there any good examples of shipping dynamic templates & static content, as part of the fat-binary, in any project using echo ?
Nara
@aigoya
Is there anybody available for help?
Martti T.
@aldas
You could try also asking questions in https://github.com/labstack/echo/discussions
spaumx
@spaumx
Good afternoon, such a question. How can I use prometheus middleware and make my own metrics? I need custom ones. Is there an example?
Martti T.
@aldas
spaumx
@spaumx

@spaumx See this https://github.com/labstack/echo/discussions/1892

Thanks, how can I set up the counter, if the variable is empty, do not send anything to the metric, if I received data into the variable, then send the metric. Sorry if I disturbed

Lahiru Udayanga
@NomadXD
Hi folks, any recommendation on any library or ORM for postgresql ? I'm totally new to http servers in golang (worked with other stuff in golang). So after few articles and reddit forums chose echo as the framework but still no clear decision on the database lib. Gorm is probably not a good choice according to lot of people. I'm thinking of go-pg and pgx which are postgresql specific. But seems like go-pg will not be maintained anymore. Only left with pgx but it's pretty basic and no ORM.
apologies for the unrelated question to echo but would like to know your opinions.
thanks
Trurl_m
@trurl:matrix.dx.center
[m]
I don't know, I use pgx, its enought for my tasks. Yes, i wrote some functions, but its no difficult
Yongho Choi
@YonghoChoi

I'm using labstack/echo/v4 v4.1.17. I am adding parameters using SetParamNames and SetParamValues in the middleware I implemented.

c.SetParamNames(paramNames...)
c.SetParamValues(paramValues...)

Intermittent panic occurs when request is called multiple times.
The panic is caused by the Reset function in the context.go file.

for i := 0; i < *c.echo.maxParam; i++ {
  c.pvalues[i] = ""
}

Anyone know the cause?

Dmitrii Okunev (at work)
@xaionaro-guest:matrix.dx.center
[m]
I do not use echo for a long time (I used like echo v2 or echo v3, do not remember). But out of curiosity, could you share the panic message?
johndiego
@johndiego
func urlHandles(e *Echo){

}
?
package applications
import (
    "github.com/labstack/echo/v4"
    // "auth/handles"
)


func urlHandles(e *Echo){

}
How i can make reference echo instance?
abdugaliyev
@abdugaliyev
Hi guys! Can anybody help me please, im rails developer, new in go, using echo + mongodb+flutter for my new project, i doesn't understand files strategy, for example posts has many images, how i need serving files? if anybody have tutorial link please share. Thanks
Jordan Rash
@jordan-rash:matrix.org
[m]
<del>G'morning all - quick question, I have found the e.HideBanner option, but it still causes the "http server started on :1322" message to display (even with a custom server). Is there a way to suppress this message?</del> Found e.HidePort