server

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 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 Api added in v1.0.21

type Api struct {
	Name     string
	Hostname string

	Version string
	// contains filtered or unexported fields
}

func NewApi added in v1.0.21

func NewApi(name, path, host string, port int, version string) *Api

func (*Api) Private added in v1.0.21

func (s *Api) Private(r *chi.Mux, method, path string, handler http.HandlerFunc)

* * Private * @param method, path string, handler http.HandlerFunc *

func (*Api) Public added in v1.0.21

func (s *Api) Public(r *chi.Mux, method, path string, handler http.HandlerFunc)

* * Public * @param method, path string, handler http.HandlerFunc *

func (*Api) SetAutentication added in v1.0.21

func (s *Api) SetAutentication(middleware func(http.Handler) http.Handler)

* * SetAutentication * @param middleware func(http.Handler) http.Handler *

func (*Api) Use added in v1.0.21

func (s *Api) Use(middlewares ...func(http.Handler) http.Handler)

* * Use * @param middlewares ...func(http.Handler) http.Handler *

type Ettp

type Ettp struct {
	*chi.Mux
	// contains filtered or unexported fields
}

func New

func New(name string, port int) *Ettp

* * New * @param appName string * @return *Ettp *

func (*Ettp) Close

func (s *Ettp) Close()

* * Close *

func (*Ettp) HandleFunc added in v1.0.12

func (s *Ettp) HandleFunc(pattern string, handlerFn http.HandlerFunc)

* * HandleFunc * @param pattern string, handlerFn http.HandlerFunc *

func (*Ettp) Mount

func (s *Ettp) Mount(pattern string, handler http.Handler)

* * Mount * @param pattern string, handler http.Handler *

func (*Ettp) NotFound added in v1.0.12

func (s *Ettp) NotFound(handlerFn http.HandlerFunc)

* * NotFound * @param handlerFn http.HandlerFunc *

func (*Ettp) OnClose

func (s *Ettp) OnClose(onClose func())

* * OnClose * @param onClose func() *

func (*Ettp) OnStart added in v1.0.12

func (s *Ettp) OnStart(onStart func())

* * OnStart * @param onStart func() *

func (*Ettp) Start

func (s *Ettp) Start()

* * Start *

func (*Ettp) StartWait added in v1.0.15

func (s *Ettp) StartWait()

* * StartAndWait *

func (*Ettp) Use added in v1.0.12

func (s *Ettp) Use(middlewares ...func(http.Handler) http.Handler)

* * Use * @param middlewares ...func(http.Handler) http.Handler *

Jump to

Keyboard shortcuts

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