mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
add LogLevel/WithLogLevel in Configuration and run Configurators before Build state
Former-commit-id: d38f1fdae98d650692775f4cee06bd017aba959f
This commit is contained in:
@@ -61,6 +61,14 @@ type myController struct {
|
||||
}
|
||||
|
||||
// SayHello implements helloworld.GreeterServer.
|
||||
// See https://github.com/kataras/iris/issues/1449#issuecomment-625570442
|
||||
// for the comments below (https://github.com/iris-contrib/swagger).
|
||||
//
|
||||
// @Description greet service
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {string} string "Hello {name}"
|
||||
// @Router /helloworld.Greeter/SayHello [post]
|
||||
func (c *myController) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {
|
||||
return &pb.HelloReply{Message: "Hello " + in.GetName()}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user