Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChiHttpSrv ¶
type ChiHttpSrv struct { *chi.Mux // contains filtered or unexported fields }
type DefaultHttpSrv ¶
gorilla
func (*DefaultHttpSrv) AddMiddleware ¶
func (srv *DefaultHttpSrv) AddMiddleware(mwf ...func(http.Handler) http.Handler)
func (*DefaultHttpSrv) AddRoute ¶
func (srv *DefaultHttpSrv) AddRoute(route ...Route)
func (*DefaultHttpSrv) Run ¶
func (srv *DefaultHttpSrv) Run()
type IServiceProvider ¶ added in v0.2.3
func NewServiceProvider ¶ added in v0.2.3
func NewServiceProvider(name string, opts ...ServiceProviderOption) IServiceProvider
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
type ServiceProvider ¶ added in v0.2.3
type ServiceProvider struct {
Name string
}
func (*ServiceProvider) SelectServer ¶ added in v0.2.3
func (s *ServiceProvider) SelectServer() (string, error)
type ServiceProviderOption ¶ added in v0.2.3
type ServiceProviderOption func(IServiceProvider)
Click to show internal directories.
Click to hide internal directories.