client

package
v0.0.0-...-dc9fcf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 6 Imported by: 0

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 ...Option) (*Client, error)

func (*Client) GetXClient

func (c *Client) GetXClient() client.XClient

type Option

type Option func(*Options)

func BasePath

func BasePath(s string) Option

func EtcdAddr

func EtcdAddr(a []string) Option

func Tracing

func Tracing(b bool) Option

func WithServiceAddr

func WithServiceAddr(addr string) Option

func WithServiceName

func WithServiceName(n string) Option

type Options

type Options struct {
	ServiceName string
	ServiceAddr string

	// registry
	BasePath string
	EtcdAddr []string

	Tracing bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL