![]() Current documentation includes a lot of non-related Cosmos SDK material, is difficult to maintain and hard to follow as a user. There is a need for a scalable structure of the Cosmos SDK documentation. ![]() TLSWriteTimeout time.# ADR 002: SDK Documentation Structure # Context Duration `long:"tls-read-timeout" description:"maximum duration before timing out read of the request"` Duration `long:"tls-keep-alive" description:"sets the TCP keep-alive timeouts on accepted connections. TLSListenLimit int `long:"tls-listen-limit" description:"limit the number of outstanding requests"` Filename `long:"tls-ca" description:"the certificate authority file to be used with mutual tls auth" env:"TLS_CA_CERTIFICATE"` Filename `long:"tls-key" description:"the private key to use for secure connections" env:"TLS_PRIVATE_KEY"` Filename `long:"tls-certificate" description:"the certificate to use for secure connections" env:"TLS_CERTIFICATE"` TLSPort int `long:"tls-port" description:"the port to listen on for secure connections, defaults to a random value" env:"TLS_PORT"` TLSHost string `long:"tls-host" description:"the IP to listen on for tls, when not specified it's the same as -host" env:"TLS_HOST"` Duration `long:"write-timeout" description:"maximum duration before timing out write of the response" default:"60s"` Duration `long:"read-timeout" description:"maximum duration before timing out read of the request" default:"30s"` closing laptop mid-download)" default:"3m"` Duration `long:"keep-alive" description:"sets the TCP keep-alive timeouts on accepted connections. ListenLimit int `long:"listen-limit" description:"limit the number of outstanding requests"` Port int `long:"port" description:"the port to listen on for insecure connections, defaults to a random value" env:"PORT"` Host string `long:"host" description:"the IP to listen on" default:"localhost" env:"HOST"` Filename `long:"socket-path" description:"the unix socket to listen on" default:"/var/run/todo-list.sock"` It does not limit the size of the request body." default:"1MiB"` ByteSize `long:"max-header-size" description:"controls the maximum number of bytes the server will read parsing the request header's keys and values, including the request line. ![]() Duration `long:"graceful-timeout" description:"grace period for which to wait before shutting down the server" default:"15s"` Duration `long:"cleanup-timeout" description:"grace period for which to wait before killing idle connections" default:"10s"` func (s *Server) UnixListener() (net.Listener, error)Ĭonfigure_todo_list.go doc.go embedded_spec.go server.go Variables ¶ĮnabledListeners string `long:"scheme" description:"the listeners to enable, this can be repeated and defaults to the schemes in the swagger spec"`ĬleanupTimeout time.func (s *Server) TLSListener() (net.Listener, error).func (s *Server) SetHandler(handler http.Handler).func (s *Server) SetAPI(api *operations.TodoListAPI).func (s *Server) Fatalf(f string, args.func NewServer(api *operations.TodoListAPI) *Server.The product of a tutorial on goswagger.io Import "/go-swagger/go-swagger/examples/tutorials/todo-list/server-1/restapi" go-swagger/go-swagger / examples / tutorials / todo-list / server-1 / restapi Index | Files | Directories package restapi
0 Comments
Leave a Reply. |