Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewYamlReaderWriter ¶
func NewYamlReaderWriter(contentType string) restful.EntityReaderWriter
NewYamlReaderWriter creates new instance.
Types ¶
type Server ¶
type Server struct { Port uint16 // contains filtered or unexported fields }
Server is a HTTP server.
func (*Server) Restart ¶
func (s *Server) Restart()
Restart performs server restart by stopping it and the by starting again.
type YamlReaderWriter ¶
type YamlReaderWriter struct {
// contains filtered or unexported fields
}
YamlReaderWriter implements EntityReaderWriter for YAML objects to be used by restful.
func (YamlReaderWriter) Read ¶
func (e YamlReaderWriter) Read(req *restful.Request, v interface{}) error
Read a serialized version of the value from the request. The Request may have a decompressing reader. Depends on Content-Encoding.
func (YamlReaderWriter) Write ¶
func (e YamlReaderWriter) Write(resp *restful.Response, status int, v interface{}) error
Write a serialized version of the value on the response. The Response may have a compressing writer. Depends on Accept-Encoding. status should be a valid Http Status code
Click to show internal directories.
Click to hide internal directories.