handler

package
v0.0.0-...-a01399d Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(srv *service.Service, logger *logrus.Logger) *Handler

func (*Handler) FileCount

func (h *Handler) FileCount(w http.ResponseWriter, r *http.Request)

func (*Handler) GetText

func (h *Handler) GetText(w http.ResponseWriter, r *http.Request)

func (*Handler) NewRouter1

func (h *Handler) NewRouter1() *mux.Router

func (*Handler) NewRouter2

func (h *Handler) NewRouter2() *mux.Router

func (*Handler) Save

func (h *Handler) Save(w http.ResponseWriter, r *http.Request)

func (*Handler) ServerTime

func (h *Handler) ServerTime(w http.ResponseWriter, r *http.Request)

func (*Handler) Write

func (h *Handler) Write(w http.ResponseWriter, r *http.Request)

func (*Handler) WriteMiddleware

func (h *Handler) WriteMiddleware(next http.HandlerFunc) http.HandlerFunc

type Key

type Key string

type Serv

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

func NewServer

func NewServer(handler http.Handler, addr string) *Serv

func (*Serv) Run

func (s *Serv) Run() error

func (*Serv) Shutdown

func (s *Serv) Shutdown(ctx context.Context) error

type Validator

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

func NewValidator

func NewValidator() *Validator

func (*Validator) Validate

func (val *Validator) Validate(i interface{}) error

Jump to

Keyboard shortcuts

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