Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(config *Configuration, dep *ServerDependencies) http.Server
NewServer creates an http server
func Spec ¶
func Spec(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Spec returns the swagger 2.0 spec
Types ¶
type Configuration ¶
Configuration for running the server
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
Validate the server configuration
type ServerDependencies ¶
type ServerDependencies struct { Logger log.Logger ImgService imgart.ImageService ProfileService imgart.ProfileService Health health.Health }
ServerDependencies contains all dependencies
Click to show internal directories.
Click to hide internal directories.