{"modulePath":"github.com/FJSDS/common","version":"v0.0.0-20210522145143-a5d50129da89","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\n## Functions\n\n```go\nfunc GetBodyBytes() []byte\n```\n\n```go\nfunc PutBodyBytes(data []byte)\n```\n\n```go\nfunc RealIP(ctx *fasthttp.RequestCtx) string\n```\n\n## Types\n\n```go\ntype HttpConfig struct {\n\tAddr       string `json:\"addr\" toml:\"addr\"`\n\tIsTLS      bool   `json:\"is_tls\" toml:\"is_tls\"`\n\tTLSCrtFile string `json:\"tls_crt_file\" toml:\"tls_crt_file\"`\n\tTLSKeyFile string `json:\"tls_key_file\" toml:\"tls_key_file\"`\n}\n```\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewService(log *logger.Logger, cfg *HttpConfig) *Service\n```\n\n```go\nfunc (this_ *Service) GetRouter() *echo.Echo\n```\n\n```go\nfunc (this_ *Service) ReadReqBody(ctx echo.Context, out []byte) (n int64, err error)\n```\n\n```go\nfunc (this_ *Service) Serve() error\n```\n\n```go\nfunc (this_ *Service) Shutdown() error\n```\n\n","path":"github.com/FJSDS/common/httpserver","name":"httpserver","synopsis":"","isRedistributable":true}
