Skip to content

stephenzhang0713/hertz-examples

 
 

Repository files navigation

Hertz Examples

English | 中文

How to run

You can enter the example for information about "How to run"

Server

  • hello: Example of launching a hertz "hello world" application
  • config: Example of configuring hertz server
  • protocol: Example of using http1, tls and other protocols of hertz
  • middleware: Example of using middleware of hertz
  • binding: Example of parameter binding and validation
  • parameters: Example of getting query, form, cookie
  • file: Examples of file upload, file download, and static file services
  • render: Example of render body as json, html, protobuf
  • redirect: Examples of redirects to internal/external URI
  • streaming: Example of streaming read/write for hertz server
  • graceful_shutdown: Example of a graceful shutdown for hertz server
  • unit_test: Example of writing unit tests using the interface provided by hertz without network transmission
  • tracer: Example of using Jaeger for link tracing
  • monitoring: Example of using Prometheus for metrics monitoring

Client

Note

All commands to execute the example should be executed under "hertz-example".

About

Examples for Hertz.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.7%
  • Shell 1.3%
  • Other 1.0%