package
2.0.7
Repository: https://github.com/devexps/go-micro.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Address with server address.
CodecForRequest get encoding.Codec via http.Request.
CodecForResponse get encoding.Codec via http.Response.
ContentType with request content type.
DefaultErrorDecoder is an HTTP error decoder.
DefaultErrorEncoder encodes the error to the HTTP response.
DefaultRequestDecoder decodes the request body to object.
DefaultRequestEncoder is an HTTP request encoder.
DefaultRequestQuery decodes the request vars to object.
DefaultRequestVars decodes the request vars to object.
DefaultResponseDecoder is an HTTP response decoder.
DefaultResponseEncoder encodes the object to the HTTP response.
Endpoint with server address.
ErrorEncoder with error encoder.
Filter with HTTP middleware option.
FilterChain returns a FilterFunc that specifies the chained handler for HTTP Router.
Header returns a CallOptions that retrieves the http response header from server reply.
Listener with server lis.
Logger with server logger.
Middleware with service middleware option.
Network with server network.
NewClient returns an HTTP client.
NewRedirect new a redirect with url, which may be a path relative to the request path.
NewServer creates an HTTP server by options.
Operation is serviceMethod call option.
PathPrefix with mux's PathPrefix, router will replaced by a subrouter that start with prefix.
PathTemplate is http path template.
RequestDecoder with request decoder.
RequestFromServerContext returns request from context.
RequestQueryDecoder with request decoder.
RequestVarsDecoder with request decoder.
ResponseEncoder with response encoder.
SetOperation sets the transport operation.
StrictSlash is with mux's StrictSlash If true, when the path pattern is "/path/", accessing "/path" will redirect to the former and vice versa.
Timeout with server timeout.
TLSConfig with TLS config.
WithBlock with client block.
WithDiscovery with client discovery.
WithEndpoint with client addr.
WithErrorDecoder with client error decoder.
WithMiddleware with client middleware.
WithNodeFilter with select filters.
WithRequestEncoder with client request encoder.
WithResponseDecoder with client response decoder.
WithSubset with client disocvery subset size.
WithTimeout with client request timeout.
WithTLSConfig with tls config.
WithTransport with client transport.
WithUserAgent with client user agent.

# Constants

SupportPackageIsVersion1 These constants should not be referenced from any other code.

# Structs

Client is an HTTP client.
ContentTypeCallOption is BodyCallOption.
EmptyCallOption does not alter the Call configuration.
HeaderCallOption is retrieve response header for client call.
OperationCallOption is set ServiceMethod for client call.
PathTemplateCallOption is set path template for client call.
RouteInfo is an HTTP route info.
Router is an HTTP router.
Server is an HTTP server wrapper.
Target is resolver target.
Transport is an HTTP transport.

# Interfaces

CallOption configures a Call before it starts or extracts information from a Call after it completes.
Context is an HTTP Context.
Redirector replies to the request with a redirect to url which may be a path relative to the request path.
Transporter is http Transporter.

# Type aliases

ClientOption is HTTP client option.
DecodeErrorFunc is decode error func.
DecodeRequestFunc is decode request func.
DecodeResponseFunc is response decode func.
EncodeErrorFunc is encode error func.
EncodeRequestFunc is request encode func.
EncodeResponseFunc is encode response func.
FilterFunc is a function which receives a http.Handler and returns another http.Handler.
Flusher type net/http.
HandlerFunc defines a function to serve HTTP requests.
Request type net/http.
No description provided by the author
ResponseWriter type net/http.
ServerOption is an HTTP server option.
WalkRouteFunc is the type of the function called for each route visited by Walk.