server

package
v0.0.0-...-d9f87ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr string `json:"listen_addr" yaml:"listen_addr" env:"CONTENT_SERVICE_SERVER_LISTEN_ADDR"`
}

func NewConfig

func NewConfig() *Config

func (*Config) FromENV

func (c *Config) FromENV() error

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(fileMessagesChan chan minioHandler.FileMessage,
	minioHandler *minioHandler.MinioHandler,
	authHandler *authHandler.AuthHandler) *Server

func (*Server) AuthenticationMiddleware

func (s *Server) AuthenticationMiddleware(next http.Handler) http.Handler

func (*Server) LoggingMiddleware

func (s *Server) LoggingMiddleware(next http.Handler) http.Handler

func (Server) ServeHTTP

func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start(c *Config)

type StatusRecorder

type StatusRecorder struct {
	http.ResponseWriter
	Status int
}

func (*StatusRecorder) WriteHeader

func (sr *StatusRecorder) WriteHeader(status int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL