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

# Functions

Backoff is used to set the backoff function used when retrying Calls.
Broker to be used for pub/sub.
Makes a synchronous call to a service using the default client.
Codec to be used to encode/decode requests for a given content type.
ContentType sets the default content type of the client.
DialTimeout sets the transport dial timeout.
No description provided by the author
NewCache returns an initialized cache.
No description provided by the author
Creates a new message using the default client.
NewOptions creates new Client options.
Creates a new request using the default client.
Creates a streaming connection with a service and returns responses on the channel passed in.
PoolSize sets the connection pool size.
PoolTTL sets the connection pool ttl.
Publishes a publication using the default client.
PublishContext sets the context in publish options.
Registry to find nodes for a given service.
RequestTimeout set the request timeout.
Retries set the number of retries when making the request.
Retry sets the retry function to be used when re-trying.
RetryAlways always retry on error.
RetryOnError retries a request on a 500 or timeout error.
Select is used to select a node to route a request to.
No description provided by the author
StreamTimeout sets the stream timeout.
No description provided by the author
Transport to use for communication e.g http, rabbitmq, etc.
WithAddress sets the remote addresses to use rather than using service discovery.
WithBackoff is a CallOption which overrides that which set in Options.CallOptions.
WithCache is a CallOption which sets the duration the response shoull be cached for.
WithCallWrapper is a CallOption which adds to the existing CallFunc wrappers.
WithConnClose sets the Connection header to close.
No description provided by the author
WithDialTimeout is a CallOption which overrides that which set in Options.CallOptions.
WithExchange sets the exchange to route a message through.
WithLogger sets the underline logger.
No description provided by the author
WithRequestTimeout is a CallOption which overrides that which set in Options.CallOptions.
WithRetries sets the number of tries for a call.
WithRetry is a CallOption which overrides that which set in Options.CallOptions.
WithRouter sets the client router.
No description provided by the author
WithServiceToken is a CallOption which overrides the authorization header with the services own auth token.
WithStreamTimeout sets the stream timeout.
Adds a Wrapper to a list of options passed into the client.
Adds a Wrapper to the list of CallFunc wrappers.

# Variables

DefaultBackoff is the default backoff function for retries.
DefaultClient is a default client to use out of the box.
DefaultCodecs map.
DefaultConnectionTimeout is the default connection timeout.
DefaultContentType header.
DefaultPoolSize sets the connection pool size.
DefaultPoolTTL sets the connection pool ttl.
DefaultRequestTimeout is the default request timeout.
DefaultRetries is the default number of times a request is tried.
DefaultRetry is the default check-for-retry function for retries.
NewClient returns a new client.

# Structs

Cache for responses.
CallOptions are options used to make calls to a server.
No description provided by the author
Options are the Client options.
No description provided by the author
No description provided by the author

# Interfaces

Client is the interface used to make requests to services.
Closer handle client close.
Message is the interface for publishing asynchronously.
Request is the interface for a synchronous request used by Call or Stream.
Response is the response received from a service.
Router manages request routing.
Stream is the inteface for a bidirectional synchronous stream.

# Type aliases

No description provided by the author
CallFunc represents the individual call func.
CallOption used by Call or Stream.
CallWrapper is a low level wrapper for the CallFunc.
MessageOption used by NewMessage.
Option used by the Client.
PublishOption used by Publish.
RequestOption used by NewRequest.
note that returning either false or a non-nil error will result in the call not being retried.
StreamWrapper wraps a Stream and returns the equivalent.
Wrapper wraps a client and returns a client.