package
0.0.0-20240126043355-ad68a05cb4f3
Repository: https://github.com/gmsec/micro.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
RegisterInterval Register the service with at interval.
RegisterTTL Register the service with a TTL.
WithName 设置客户端名字.
WithPoolSize sets the connection pool size.
WithPoolTTL sets the connection pool ttl.
WithRegistryNaming 注册naming 服务发现.
WithScheme 设置客户端服务名.
WithServiceIps 设置服务ip列表.
WithServiceName 设置服务名字.
# Variables
DefaultPoolMaxIdle maximum idle conns of a pool (50).
DefaultPoolMaxStreams maximum streams on a connectioin (20).
DefaultPoolSize sets the connection pool size.
DefaultPoolTimeout sets the connection pool ttl.
DefaultPoolTTL sets the connection pool ttl.
DefaultRequestTimeout is the default request timeout.
// DefaultNamingClient is a default client to use out of the box DefaultNamingClient Client = newNamingClient() // DefaultIPAddrClient is a default client to use addr to connection DefaultIPAddrClient Client = newIPAddrClient() DefaultRetries is the default number of times a request is tried.
NewClient returns a new client.
NewIPAddrClient returns a new client.
# Interfaces
Client is the interface used to make requests to services.
# Type aliases
Option used by the Client.