Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
func NewHTTPClient ¶
func NewHTTPClient(opts ...HTTPClientOption) *HTTPClient
type HTTPClientOption ¶
type HTTPClientOption func(c *HTTPClient)
func HTTPClientWithBaseURL ¶
func HTTPClientWithBaseURL(v string) HTTPClientOption
func HTTPClientWithCookieJar ¶
func HTTPClientWithCookieJar(v *cookiejar.Jar) HTTPClientOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddService ¶
AddService add a single service
func (*Server) AddServices ¶
AddServices adds multiple service
func (*Server) GetService ¶
type Service ¶
type Service interface { URL() string Name() string Start(ctx context.Context) Close(ctx context.Context) }
Service interface
type ServiceHTTP ¶
type ServiceHTTP struct {
// contains filtered or unexported fields
}
ServiceHTTP struct
func NewServiceHTTP ¶
func NewServiceHTTP(l *zap.Logger, name string, handler http.Handler, middlewares ...middleware.Middleware) *ServiceHTTP
func (*ServiceHTTP) Close ¶
func (s *ServiceHTTP) Close(_ context.Context)
func (*ServiceHTTP) Logger ¶
func (s *ServiceHTTP) Logger() *zap.Logger
func (*ServiceHTTP) Name ¶
func (s *ServiceHTTP) Name() string
func (*ServiceHTTP) Start ¶
func (s *ServiceHTTP) Start(ctx context.Context)
func (*ServiceHTTP) URL ¶
func (s *ServiceHTTP) URL() string
Click to show internal directories.
Click to hide internal directories.