Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...ClientOption) (*Client, error)
type ClientOption ¶
type ClientOption func(c *Client)
func ClientInsecure ¶
func ClientInsecure() ClientOption
func ClientWithPickerBuilder ¶
func ClientWithPickerBuilder(name string, b base.PickerBuilder) ClientOption
func ClientWithResolver ¶
func ClientWithResolver(registry registry.Registry, timeout time.Duration) ClientOption
type GrpcResolverBuilder ¶
type GrpcResolverBuilder struct {
// contains filtered or unexported fields
}
func NewRegistryBuilder ¶
func NewRegistryBuilder(registry registry.Registry, opts ...GrpcResolverOptions) (*GrpcResolverBuilder, error)
func (*GrpcResolverBuilder) Build ¶
func (b *GrpcResolverBuilder) Build(target resolver.Target, clientConn resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*GrpcResolverBuilder) Scheme ¶
func (b *GrpcResolverBuilder) Scheme() string
type GrpcResolverOptions ¶
type GrpcResolverOptions func(r *GrpcResolverBuilder)
func RegistryWithTimeout ¶
func RegistryWithTimeout(timeout time.Duration) GrpcResolverOptions
type ServerOption ¶
type ServerOption func(s *Server)
func ServerWithGroup ¶
func ServerWithGroup(group string) ServerOption
func ServerWithRegisterTimeout ¶
func ServerWithRegisterTimeout(d time.Duration) ServerOption
func ServerWithRegistry ¶
func ServerWithRegistry(reg registry.Registry) ServerOption
func ServerWithWeight ¶
func ServerWithWeight(weight uint32) ServerOption
Click to show internal directories.
Click to hide internal directories.